Fixed display

This commit is contained in:
Auxilor 2022-09-11 11:12:28 +01:00
parent d6ca343f5a
commit 1d852d68ac

View File

@ -103,7 +103,11 @@ class EnchantDisplay(private val plugin: EcoEnchantsPlugin) : DisplayModule(plug
val pdc = fast.persistentDataContainer
if (!pdc.has(internalHideEnchants, PersistentDataType.INTEGER)) {
fast.removeItemFlags(ItemFlag.HIDE_POTION_EFFECTS, ItemFlag.HIDE_ENCHANTS)
fast.removeItemFlags(ItemFlag.HIDE_ENCHANTS)
if (itemStack.type == Material.ENCHANTED_BOOK) {
fast.removeItemFlags(ItemFlag.HIDE_POTION_EFFECTS)
}
}
pdc.remove(internalHideEnchants)