From f116763e6344b692e48cbba90a79ce66e82813dc Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 27 Apr 2023 18:52:41 +0100 Subject: [PATCH] Oops --- .../main/kotlin/com/willfp/ecoenchants/target/EnchantLookup.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }