From c1a728adf065a94773f94dfeeb57ed2e37961ef9 Mon Sep 17 00:00:00 2001 From: Will FP Date: Thu, 7 Dec 2023 15:50:14 +0000 Subject: [PATCH] Fixed EnchantGUI --- .../main/kotlin/com/willfp/ecoenchants/enchant/EnchantGUI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchant/EnchantGUI.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchant/EnchantGUI.kt index 8ab320fc..bbfac9d8 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchant/EnchantGUI.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchant/EnchantGUI.kt @@ -78,7 +78,7 @@ object EnchantGUI { menu.setState( player, "enchants", - atCaptive.applicableEnchantments.sortForDisplay() + atCaptive.applicableEnchantments.map { it.enchantment }.sortForDisplay() .subtract(atCaptive.fast().enchants.keys) .toList() )