Always take item after processing in Recycler

This commit is contained in:
mrkubax10 2023-03-23 10:40:53 +01:00
parent 85dddf6d78
commit 0e036c8208

View File

@ -407,11 +407,11 @@ local function registerSimpleElectricItemProcessor(config)
if meta:get_float("srcTime")>=meta:get_float("maxSrcTime") then
local output=craftResultProxy(config.method,srcSlot)
if output.item:get_count()>0 then
inv:set_stack("src",1,output.src)
inv:add_item("dst",output.item)
meta:set_float("srcTime",-1)
meta:set_float("maxSrcTime",0)
end
inv:set_stack("src",1,output.src)
end
if not industrialtest.api.isFullyCharged(meta) then
industrialtest.api.triggerNeighbours(pos)