From 1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c Mon Sep 17 00:00:00 2001 From: nea Date: Tue, 30 May 2023 00:30:34 +0200 Subject: Remove stacksize from hashcode --- src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin') diff --git a/src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt b/src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt index 3f6ac75..1e5ae4c 100644 --- a/src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt +++ b/src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt @@ -77,7 +77,7 @@ object SBItemEntryDefinition : EntryDefinition { override fun hash(entry: EntryStack, value: SBItemStack, context: ComparisonContext): Long { // Repo items are immutable, and get replaced entirely when loaded from disk - return value.skyblockId.hashCode() * 31L + if (!context.isExact) value.stackSize else 0 + return value.skyblockId.hashCode() * 31L } override fun wildcard(entry: EntryStack?, value: SBItemStack): SBItemStack { -- cgit