mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-07 22:27:34 +01:00
Fixed lore setting bug
This commit is contained in:
parent
94666e8cb6
commit
007b6e504f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user