mirror of
https://github.com/songoda/EpicHeads.git
synced 2024-12-01 15:04:07 +01:00
Fix creating empty lore when lore list is empty
This commit is contained in:
parent
0adbae5f7a
commit
6f395ef3cf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user