mirror of
https://github.com/songoda/EpicHeads.git
synced 2024-11-29 14:06:29 +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())
|
||||
lore.add(formatText(line));
|
||||
meta.setLore(lore);
|
||||
if (!line.equals(""))
|
||||
lore.add(formatText(line));
|
||||
if (lore != null) meta.setLore(lore);
|
||||
itemStack.setItemMeta(meta);
|
||||
return itemStack;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user