diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/display/EnchantDisplay.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/display/EnchantDisplay.kt index 715c3c28..1f69871b 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/display/EnchantDisplay.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/display/EnchantDisplay.kt @@ -12,6 +12,7 @@ import com.willfp.ecoenchants.display.EnchantSorter.sortForDisplay import com.willfp.ecoenchants.enchants.EcoEnchant import com.willfp.ecoenchants.enchants.wrap import com.willfp.ecoenchants.target.EnchantmentTargets.isEnchantable +import com.willfp.libreforge.conditions.isMet import org.bukkit.Material import org.bukkit.entity.Player import org.bukkit.inventory.ItemFlag @@ -83,8 +84,10 @@ class EnchantDisplay(private val plugin: EcoEnchantsPlugin) : DisplayModule(plug showNotMet = true } - if (enchantLevel.conditions.any { it.notMetEffects.isNotEmpty() }) { - showNotMet = true + if (!showNotMet && !enchantLevel.conditions.isMet(player)) { // I know it's slow! I'll fix it. + if (enchantLevel.conditions.any { it.notMetEffects.isNotEmpty() }) { + showNotMet = true + } } }