mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed display
This commit is contained in:
parent
d6ca343f5a
commit
1d852d68ac
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user