From 7d506c6cd759646477e4d8dc8353b995d36aaa8c Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 23 Sep 2018 19:14:32 +1000 Subject: [PATCH] SPIGOT-4389: Fix empty custom inventory title --- .../org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java index 2212e09cb5..6e17b4fd90 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(); this.owner = owner; this.type = InventoryType.CHEST;