Hopefully fixes the last of the ItemBrowser null pointers

This commit is contained in:
ASangarin 2020-12-21 01:51:50 +01:00
parent 7bc1a37d10
commit 43750b11f7

View File

@ -135,7 +135,7 @@ public class ItemBrowser extends PluginInventory {
if(lore == null) {
stack = nbtItem.toItem();
ItemMeta meta = stack.getItemMeta();
List<String> newLore = meta.getLore();
List<String> newLore = meta.hasLore() ? meta.getLore() : new ArrayList<>();
newLore.add("");
if (deleteMode) {
newLore.add(ChatColor.RED + AltChar.cross + " CLICK TO DELETE " + AltChar.cross);