mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-08 19:51:05 +00: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