Update from upstream SpigotMC

81e4ab71ca4
b023457499d
dc776bee32b
116e6fc98dc
2b97a3846f2
This commit is contained in:
Zach Brown
2014-12-12 22:47:57 -06:00
parent af1661e8d3
commit 6e2bd0745f
2 changed files with 339 additions and 329 deletions

View File

@@ -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