aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0008-CB-fixes.patch
diff options
context:
space:
mode:
authorBjarne Koll <[email protected]>2024-05-11 23:57:03 +0200
committerBjarne Koll <[email protected]>2024-05-11 23:57:03 +0200
commit87d9ddbb30301c3291ef77aacd0349080cd3b27e (patch)
tree6f80e24733ec49e5b5f8d117cba4a8f2fc9e55da /patches/server/0008-CB-fixes.patch
parent85319a44e767aff4275e689421dbea41cb8ea4fe (diff)
downloadPaper-87d9ddbb30301c3291ef77aacd0349080cd3b27e.tar.gz
Paper-87d9ddbb30301c3291ef77aacd0349080cd3b27e.zip
Diffstat (limited to 'patches/server/0008-CB-fixes.patch')
-rw-r--r--patches/server/0008-CB-fixes.patch19
1 files changed, 0 insertions, 19 deletions
diff --git a/patches/server/0008-CB-fixes.patch b/patches/server/0008-CB-fixes.patch
index ca455ce7c4..2c625b3d58 100644
--- a/patches/server/0008-CB-fixes.patch
+++ b/patches/server/0008-CB-fixes.patch
@@ -98,25 +98,6 @@ index 1e3ca7ca98abfd5be233a7eeb6dad201776d2d6a..9ec50bbb262b25fea157ae48e8395f5c
this.acceptsAll(Main.asList("nogui"), "Disables the graphical console");
this.acceptsAll(Main.asList("nojline"), "Disables jline and emulates the vanilla console");
-diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java
-index 9c57b883783145ad4483481a2c2e7f0f188cd174..4ffcdff978bb68e74bf19f43433204e9ca3cd2d6 100644
---- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java
-+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java
-@@ -358,7 +358,13 @@ public class CraftMetaBookSigned extends CraftMetaItem implements BookMeta {
- }
-
- if (this.pages != null) {
-- builder.put(CraftMetaBookSigned.BOOK_PAGES.BUKKIT, ImmutableList.copyOf(this.pages));
-+ // Paper start - deserialization expects json
-+ List<String> jsonPages = new ArrayList<>();
-+ for (final Component page : this.pages) {
-+ jsonPages.add(CraftChatMessage.toJSON(page));
-+ }
-+ builder.put(CraftMetaBookSigned.BOOK_PAGES.BUKKIT, ImmutableList.copyOf(jsonPages));
-+ // Paper end - deserialization expects json
- }
-
- if (this.resolved) {
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaMap.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaMap.java
index 6b34a8d33faa49ffa9082995e67af10d3cb38c03..f0c817e27a602740bc979b2ebaec3917e1906d74 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaMap.java