From 7546a61ae3e157e99fe84fa5bf0cd689e9404408 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 15 May 2025 02:29:07 +0200 Subject: [PATCH] Allow transfers to blank stacks --- itemstack.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itemstack.lua b/itemstack.lua index c37f0ae..e18c716 100644 --- a/itemstack.lua +++ b/itemstack.lua @@ -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