summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-12-27 12:13:28 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-12-27 12:13:28 +0000
commitd51936efb429ffdb116aa1ef72aa94b598d9967f (patch)
tree84ad12a12f379ba32ed8e4bcae3b8f20ec1f11f1 /src
parent306b233a40198168e3d9683e5ae469594fe42194 (diff)
downloadcraftbukkit-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.java6
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) {