diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-27 12:13:28 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-27 12:13:28 +0000 |
commit | d51936efb429ffdb116aa1ef72aa94b598d9967f (patch) | |
tree | 84ad12a12f379ba32ed8e4bcae3b8f20ec1f11f1 /src | |
parent | 306b233a40198168e3d9683e5ae469594fe42194 (diff) | |
download | craftbukkit-d51936efb429ffdb116aa1ef72aa94b598d9967f.tar craftbukkit-d51936efb429ffdb116aa1ef72aa94b598d9967f.tar.gz craftbukkit-d51936efb429ffdb116aa1ef72aa94b598d9967f.tar.lz craftbukkit-d51936efb429ffdb116aa1ef72aa94b598d9967f.tar.xz craftbukkit-d51936efb429ffdb116aa1ef72aa94b598d9967f.zip |
SPIGOT-298: Fix book serialization
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java index e1badcbd..a76ae7d7 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java @@ -316,7 +316,11 @@ class CraftMetaBook extends CraftMetaItem implements BookMeta { } if (hasPages()) { - builder.put(BOOK_PAGES.BUKKIT, pages); + List<String> pagesString = new ArrayList<String>(); + for (IChatBaseComponent comp : pages) { + pagesString.add(CraftChatMessage.fromComponent(comp)); + } + builder.put(BOOK_PAGES.BUKKIT, pagesString); } if (generation != null) { |