mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
SPIGOT-4816: Editing book causes glitchy behaviour
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a3c770141e
commit
a2a0f9e6d3
@ -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…
Reference in New Issue
Block a user