summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-09-23 19:14:32 +1000
committermd_5 <git@md-5.net>2018-09-23 19:14:32 +1000
commit7d506c6cd759646477e4d8dc8353b995d36aaa8c (patch)
tree79cbe9fd534d8ef63c5fcfa6d530f9afcebf0e4e
parentfc10dec5f369d71a5f0baad17b386ec9706b0773 (diff)
downloadcraftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.tar
craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.tar.gz
craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.tar.lz
craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.tar.xz
craftbukkit-7d506c6cd759646477e4d8dc8353b995d36aaa8c.zip
SPIGOT-4389: Fix empty custom inventory title
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCustom.java2
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;