From 9a953f88f39b82ab0e5309c70a5d4abb1720a87d Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 26 Jul 2018 14:20:49 +0200 Subject: [PATCH] Fix item name for potions and some other items --- src/main/java/de/epiceric/shopchest/language/LanguageUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/language/LanguageUtils.java b/src/main/java/de/epiceric/shopchest/language/LanguageUtils.java index b380d2e..61a90c1 100644 --- a/src/main/java/de/epiceric/shopchest/language/LanguageUtils.java +++ b/src/main/java/de/epiceric/shopchest/language/LanguageUtils.java @@ -2141,7 +2141,7 @@ public class LanguageUtils { if (stack.hasItemMeta()) { ItemMeta meta = stack.getItemMeta(); - if (meta.getDisplayName() != null) { + if (meta.getDisplayName() != null && !meta.getDisplayName().isEmpty()) { return meta.getDisplayName(); } else if (meta instanceof BookMeta && ((BookMeta) meta).hasTitle()) { return ((BookMeta) meta).getTitle();