Fix lore being null.
This commit is contained in:
parent
009d48659b
commit
9a8c410448
@ -44,7 +44,7 @@ public class AddLoreCommand extends BaseCommand
|
||||
}
|
||||
line = line.replaceAll("&", "§").trim();
|
||||
|
||||
List<String> lore = new ArrayList<>(im.getLore());
|
||||
List<String> lore = (im.getLore() != null ? new ArrayList<>(im.getLore()) : new ArrayList<>());
|
||||
lore.add(line);
|
||||
im.setLore(lore);
|
||||
is.setItemMeta(im);
|
||||
|
Loading…
Reference in New Issue
Block a user