mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-25 12:06:16 +01:00
Fix item name for potions and some other items
This commit is contained in:
parent
3c0790d670
commit
9a953f88f3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user