Track newly non-blank stacks for targets of transfers
This commit is contained in:
parent
7546a61ae3
commit
c9ac64d6c5
@ -77,7 +77,12 @@ function prototype:moveItemsTo(count, fromSlot, otherChest, toSlot)
|
||||
if myStack.count == 0 then
|
||||
self.slots[fromSlot] = nil
|
||||
end
|
||||
|
||||
targetStack.count = targetStack.count + tx
|
||||
if targetStack:isBlank() then
|
||||
targetStack.item = myStack.item
|
||||
otherChest.slots[toSlot] = targetStack
|
||||
end
|
||||
|
||||
return tx
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user