Update from upstream SpigotMC
81e4ab71ca4 b023457499d dc776bee32b 116e6fc98dc 2b97a3846f2
This commit is contained in:
@@ -90,11 +90,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
- this.author = tag.getString(BOOK_AUTHOR.NBT);
|
||||
+ this.author = limit( tag.getString(BOOK_AUTHOR.NBT), 1024 ); // Spigot
|
||||
}
|
||||
|
||||
if (tag.hasKey(RESOLVED.NBT)) {
|
||||
|
||||
boolean resolved = false;
|
||||
@@ -0,0 +0,0 @@ class CraftMetaBook extends CraftMetaItem implements BookMeta {
|
||||
if (resolved != null && resolved) {
|
||||
page = CraftChatMessage.fromComponent(ChatSerializer.a(page));
|
||||
// Ignore and treat as an old book
|
||||
}
|
||||
}
|
||||
- pageArray[i] = page;
|
||||
+ pageArray[i] = limit( page, 2048 ); // Spigot
|
||||
|
||||
Reference in New Issue
Block a user