diff options
author | nea <nea@nea.moe> | 2023-05-30 00:30:34 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-05-30 00:30:34 +0200 |
commit | 1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c (patch) | |
tree | 1390c27810a33b6d84f90f6b4385215a95416028 | |
parent | edb723e4230ad0c67518a2323273871735db728d (diff) | |
download | firmament-1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c.tar.gz firmament-1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c.tar.bz2 firmament-1d3b28f9f191cbaddc4bc4a8c552f89cdef1614c.zip |
Remove stacksize from hashcode
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt | 2 |
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 { |