diff --git a/eco-core/core-nms/v1_20_6/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_20_6/FastItemStackFactory.kt b/eco-core/core-nms/v1_20_6/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_20_6/FastItemStackFactory.kt index 18daaf60..ea3f3f0c 100644 --- a/eco-core/core-nms/v1_20_6/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_20_6/FastItemStackFactory.kt +++ b/eco-core/core-nms/v1_20_6/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_20_6/FastItemStackFactory.kt @@ -63,7 +63,7 @@ class FastItemStackFactory : FastItemStackFactoryProxy { } if (checkStored) { - val stored = handle.get(DataComponents.ENCHANTMENTS) ?: return map + val stored = handle.get(DataComponents.STORED_ENCHANTMENTS) ?: return map for ((enchantment, level) in stored.entrySet()) { val bukkit = CraftEnchantment.minecraftToBukkit(enchantment.value()) diff --git a/eco-core/core-nms/v1_21/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_21/FastItemStackFactory.kt b/eco-core/core-nms/v1_21/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_21/FastItemStackFactory.kt index a194fec8..a55549c8 100644 --- a/eco-core/core-nms/v1_21/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_21/FastItemStackFactory.kt +++ b/eco-core/core-nms/v1_21/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_21/FastItemStackFactory.kt @@ -70,7 +70,7 @@ class FastItemStackFactory : FastItemStackFactoryProxy { } if (checkStored) { - val stored = handle.get(DataComponents.ENCHANTMENTS) ?: return map + val stored = handle.get(DataComponents.STORED_ENCHANTMENTS) ?: return map for ((enchantment, level) in stored.entrySet()) { val bukkit = CraftEnchantment.minecraftToBukkit(enchantment.value())