mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-02 04:27:19 +02:00
SPIGOT-4816: Editing book causes glitchy behaviour
This commit is contained in:
parent
d7d28b1244
commit
9926d780c4
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ public class CraftMetaBook extends CraftMetaItem implements BookMeta {
|
|||
if (hasPages()) {
|
||||
NBTTagList list = new NBTTagList();
|
||||
for (IChatBaseComponent page : pages) {
|
||||
list.add(new NBTTagString(CraftChatMessage.fromComponent(page)));
|
||||
list.add(new NBTTagString(page == null ? "" : page.getString()));
|
||||
}
|
||||
itemData.set(BOOK_PAGES.NBT, list);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue