mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-21 09:21:21 +01:00
Hopefully fixes the last of the ItemBrowser null pointers
This commit is contained in:
parent
7bc1a37d10
commit
43750b11f7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user