diff --git a/eco-core/core-nms/modern/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/common/modern/NewEcoFastItemStack.kt b/eco-core/core-nms/modern/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/common/modern/NewEcoFastItemStack.kt index a5a6fe8a6..8cc652b66 100644 --- a/eco-core/core-nms/modern/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/common/modern/NewEcoFastItemStack.kt +++ b/eco-core/core-nms/modern/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/common/modern/NewEcoFastItemStack.kt @@ -25,6 +25,7 @@ import net.minecraft.util.Unit import net.minecraft.world.item.component.CustomData import net.minecraft.world.item.component.CustomModelData import net.minecraft.world.item.component.ItemLore +import net.minecraft.world.item.enchantment.ItemEnchantments import org.bukkit.Bukkit import org.bukkit.craftbukkit.CraftRegistry import org.bukkit.craftbukkit.CraftServer @@ -53,7 +54,7 @@ class NewEcoFastItemStack( private val pdc = (handle.get(DataComponents.CUSTOM_DATA)?.copyTag() ?: CompoundTag()).makePdc() override fun getEnchants(checkStored: Boolean): Map { - val enchantments = handle.get(DataComponents.ENCHANTMENTS) ?: return emptyMap() + val enchantments = handle.get(DataComponents.ENCHANTMENTS) ?: ItemEnchantments.EMPTY val map = mutableMapOf()