mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-24 00:41:23 +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);
|
lore.addAll(requirementLore);
|
||||||
|
|
||||||
fastItemStack.setLore(lore);
|
if (!lore.isEmpty()) {
|
||||||
|
fastItemStack.setLore(lore);
|
||||||
|
}
|
||||||
|
|
||||||
if (itemStack.getType() == Material.ENCHANTED_BOOK) {
|
if (itemStack.getType() == Material.ENCHANTED_BOOK) {
|
||||||
fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_POTION_EFFECTS);
|
fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_POTION_EFFECTS);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user