diff options
author | md_5 <git@md-5.net> | 2018-09-23 19:14:32 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-09-23 19:14:32 +1000 |
commit | 7d506c6cd759646477e4d8dc8353b995d36aaa8c (patch) | |
tree | 79cbe9fd534d8ef63c5fcfa6d530f9afcebf0e4e /src/main | |
parent | fc10dec5f369d71a5f0baad17b386ec9706b0773 (diff) | |
download | craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.tar craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.tar.gz craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.tar.lz craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.tar.xz craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.zip |
SPIGOT-4389: Fix empty custom inventory title
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java index 2212e09c..6e17b4fd 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java @@ -61,7 +61,7 @@ public class CraftInventoryCustom extends CraftInventory { public MinecraftInventory(InventoryHolder owner, int size, String title) { Validate.notNull(title, "Title cannot be null"); this.items = NonNullList.a(size, ItemStack.a); - this.title = CraftChatMessage.fromStringOrNull(title); + this.title = CraftChatMessage.fromString(title)[0]; this.viewers = new ArrayList<HumanEntity>(); this.owner = owner; this.type = InventoryType.CHEST; |