mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 08:38:45 +01:00
Raise book max title length to 32
This commit is contained in:
parent
974b0afca9
commit
e9abb69799
1 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
From 83fd1a178278b176c9cebc5a898212e01b977c27 Mon Sep 17 00:00:00 2001
|
||||
From: Zach Brown <zach.brown@destroystokyo.com>
|
||||
Date: Sat, 29 Apr 2017 20:41:58 -0500
|
||||
Subject: [PATCH] Raise book max title length to 32
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java
|
||||
index dfeeb54e6..0c7ae36b4 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java
|
||||
@@ -36,7 +36,7 @@ public class CraftMetaBook extends CraftMetaItem implements BookMeta {
|
||||
static final ItemMetaKey GENERATION = new ItemMetaKey("generation");
|
||||
static final int MAX_PAGES = 50;
|
||||
static final int MAX_PAGE_LENGTH = 256;
|
||||
- static final int MAX_TITLE_LENGTH = 16;
|
||||
+ static final int MAX_TITLE_LENGTH = 32; // Paper
|
||||
|
||||
protected String title;
|
||||
protected String author;
|
||||
--
|
||||
2.12.2.windows.2
|
||||
|
Loading…
Reference in a new issue