Fix creating empty lore when lore list is empty

This commit is contained in:
Mister Spock 2019-08-09 14:42:49 +00:00
parent 0adbae5f7a
commit 6f395ef3cf

View File

@ -105,8 +105,9 @@ public class Methods {
meta.setDisplayName(formatText(Setting.ITEM_TOKEN_NAME.getString()));
List<String> lore = new ArrayList<>();
for (String line : Setting.ITEM_TOKEN_LORE.getStringList())
if (!line.equals(""))
lore.add(formatText(line));
meta.setLore(lore);
if (lore != null) meta.setLore(lore);
itemStack.setItemMeta(meta);
return itemStack;
}