Fixed an issue with the item browser not working with items with no lore

This commit is contained in:
Jules 2021-11-11 12:30:18 +01:00
parent a5baeb4e82
commit cf683a7694

View File

@ -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) {