mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
SPIGOT-298: Fix book serialization
This commit is contained in:
1 parent
306b233a40
commit
d51936efb4
1 file changed
+5
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user