diff --git a/localchest.lua b/localchest.lua index 01b5d68..397c928 100644 --- a/localchest.lua +++ b/localchest.lua @@ -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