SPIGOT-298: Fix book serialization

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
CraftBukkit/Spigot
2014-12-27 12:13:28 +00:00
parent 34d157aca8
commit d15ac3e596

View File

@@ -316,7 +316,11 @@ class CraftMetaBook extends CraftMetaItem implements BookMeta {
} }
if (hasPages()) { 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) { if (generation != null) {