From ca9a5dac343dfb9e00bca74245cf46826caad499 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 17 May 2023 16:19:56 +0100 Subject: [PATCH] Fixed show-not-met --- .../kotlin/com/willfp/ecoenchants/display/EnchantDisplay.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a1394f51..26ce08c9 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 @@ -82,7 +82,7 @@ class EnchantDisplay(private val plugin: EcoEnchantsPlugin) : DisplayModule(plug val enchantNotMetLines = enchantLevel.conditions.getNotMetLines(player, holder).map { Display.PREFIX + it } notMetLines.addAll(enchantNotMetLines) - if (enchantNotMetLines.isNotEmpty()) { + if (enchantNotMetLines.isNotEmpty() || enchantLevel.conditions.isShowingAnyNotMet(player, holder)) { showNotMet = true } }