diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/target/EnchantLookup.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/target/EnchantLookup.kt index 33424da7..059c46e3 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/target/EnchantLookup.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/target/EnchantLookup.kt @@ -30,7 +30,7 @@ data class ItemInNumericSlot internal constructor( val slot: Int ) { override fun hashCode(): Int { - return HashedItem.of(item).hash + (slot shl 31) + return HashedItem.of(item).hash * (slot + 1) } }