Allow transfers to blank stacks

This commit is contained in:
Gabriel Tofvesson 2025-05-15 02:29:07 +02:00
parent c71d207ee2
commit 7546a61ae3

View File

@ -12,7 +12,7 @@ function prototype:availableCount()
end
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
end