Fix lore being null.

This commit is contained in:
William Burns 2016-02-25 15:39:18 +00:00
parent 009d48659b
commit 9a8c410448

View File

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