mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Fixed an issue with the item browser not working with items with no lore
This commit is contained in:
parent
a5baeb4e82
commit
cf683a7694
@ -129,7 +129,7 @@ public class ItemBrowser extends PluginInventory {
|
||||
}
|
||||
|
||||
ItemMeta meta = item.getItemMeta();
|
||||
List<String> lore = meta.getLore();
|
||||
List<String> lore = meta.hasLore() ? meta.getLore() : new ArrayList<>();
|
||||
lore.add("");
|
||||
|
||||
if (deleteMode) {
|
||||
|
Loading…
Reference in New Issue
Block a user