Skip to content

Commit 0a86b07

Browse files
committed
check item and components before replenishing
1 parent db9e01c commit 0a86b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/lambda/module/modules/player/StackReplenish.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object StackReplenish : Module(
6262
if (!stack.isStackable) return
6363

6464
player.inventoryStacks.forEach { invStack ->
65-
if (invStack.item !== stack.item) return@forEach
65+
if (!ItemStack.areItemsAndComponentsEqual(invStack, stack)) return@forEach
6666
val invId = invStack.slotId
6767
val completing = stack.count + invStack.count >= stack.maxCount
6868
val tooMany = invStack.count + stack.count > stack.maxCount

0 commit comments

Comments
 (0)