mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-29 13:52:23 +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()) {
|
if (stack.hasItemMeta()) {
|
||||||
ItemMeta meta = stack.getItemMeta();
|
ItemMeta meta = stack.getItemMeta();
|
||||||
if (meta.getDisplayName() != null) {
|
if (meta.getDisplayName() != null && !meta.getDisplayName().isEmpty()) {
|
||||||
return meta.getDisplayName();
|
return meta.getDisplayName();
|
||||||
} else if (meta instanceof BookMeta && ((BookMeta) meta).hasTitle()) {
|
} else if (meta instanceof BookMeta && ((BookMeta) meta).hasTitle()) {
|
||||||
return ((BookMeta) meta).getTitle();
|
return ((BookMeta) meta).getTitle();
|
||||||
|
Loading…
Reference in New Issue
Block a user