Fixed lore setting bug

This commit is contained in:
Auxilor 2022-06-10 20:06:53 +01:00
parent 94666e8cb6
commit 007b6e504f

View File

@ -196,7 +196,10 @@ public class EnchantDisplay extends DisplayModule {
}
lore.addAll(requirementLore);
fastItemStack.setLore(lore);
if (!lore.isEmpty()) {
fastItemStack.setLore(lore);
}
if (itemStack.getType() == Material.ENCHANTED_BOOK) {
fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_POTION_EFFECTS);
} else {