mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-03-12 13:39:06 +01:00
Hopefully fixed display bug
This commit is contained in:
parent
98626dd347
commit
a76c16aad9
@ -153,11 +153,6 @@ public class EnchantDisplay extends DisplayModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (meta instanceof EnchantmentStorageMeta) {
|
|
||||||
meta.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
|
|
||||||
}
|
|
||||||
|
|
||||||
meta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
|
|
||||||
if (this.getOptions().isAboveLore()) {
|
if (this.getOptions().isAboveLore()) {
|
||||||
lore.addAll(itemLore);
|
lore.addAll(itemLore);
|
||||||
} else {
|
} else {
|
||||||
@ -165,6 +160,17 @@ public class EnchantDisplay extends DisplayModule {
|
|||||||
}
|
}
|
||||||
itemStack.setItemMeta(meta);
|
itemStack.setItemMeta(meta);
|
||||||
fastItemStack.setLore(lore);
|
fastItemStack.setLore(lore);
|
||||||
|
|
||||||
|
ItemMeta meta2 = itemStack.getItemMeta();
|
||||||
|
assert meta2 != null;
|
||||||
|
|
||||||
|
if (meta2 instanceof EnchantmentStorageMeta) {
|
||||||
|
meta2.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
|
||||||
|
}
|
||||||
|
|
||||||
|
meta2.addItemFlags(ItemFlag.HIDE_ENCHANTS);
|
||||||
|
|
||||||
|
itemStack.setItemMeta(meta2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user