Allow transfers to blank stacks
This commit is contained in:
parent
c71d207ee2
commit
7546a61ae3
@ -12,7 +12,7 @@ function prototype:availableCount()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function prototype:canTransferTo(otherStack)
|
function prototype:canTransferTo(otherStack)
|
||||||
if self:isBlank() or self.item ~= otherStack.item then
|
if self:isBlank() or ((not otherStack:isBlank()) and self.item ~= otherStack.item) then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user