mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-298: Fix book serialization
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
34d157aca8
commit
d15ac3e596
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue