From b8446f770b16c4739202de8929e64477dfabb1ed Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 14 May 2017 11:19:38 +1000 Subject: [PATCH] Change book limit to allow for automatically generated colour codes By: md_5 --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java index 8e5405d182..441632bb3a 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java @@ -31,7 +31,7 @@ public class CraftMetaBook extends CraftMetaItem implements BookMeta { static final ItemMetaKey RESOLVED = new ItemMetaKey("resolved"); static final ItemMetaKey GENERATION = new ItemMetaKey("generation"); static final int MAX_PAGES = 50; - static final int MAX_PAGE_LENGTH = 256; + static final int MAX_PAGE_LENGTH = 320; // 256 limit + 64 characters to allow for psuedo colour codes static final int MAX_TITLE_LENGTH = 32; protected String title;