diff --git a/storage/itemstack.lua b/storage/itemstack.lua index 867d999..60f0f95 100644 --- a/storage/itemstack.lua +++ b/storage/itemstack.lua @@ -193,8 +193,8 @@ function ItemStack:transferTo(target, count) return false, xfer end - self:_modify(-xfer, self) target:_modify(xfer, self) + self:_modify(-xfer, self) return xfer == count, xfer end