aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-05-30 00:30:34 +0200
committernea <nea@nea.moe>2023-05-30 00:30:34 +0200
commit1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c (patch)
tree1390c27810a33b6d84f90f6b4385215a95416028 /src/main/kotlin/moe
parentedb723e4230ad0c67518a2323273871735db728d (diff)
downloadFirmament-1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c.tar.gz
Firmament-1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c.tar.bz2
Firmament-1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c.zip
Remove stacksize from hashcode
Diffstat (limited to 'src/main/kotlin/moe')
-rw-r--r--src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt2
1 files changed, 1 insertions, 1 deletions
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<SBItemStack> {
override fun hash(entry: EntryStack<SBItemStack>, 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<SBItemStack>?, value: SBItemStack): SBItemStack {