forked from mrkubax10/industrialtest
Always take item after processing in Recycler
This commit is contained in:
parent
85dddf6d78
commit
0e036c8208
@ -407,11 +407,11 @@ local function registerSimpleElectricItemProcessor(config)
|
|||||||
if meta:get_float("srcTime")>=meta:get_float("maxSrcTime") then
|
if meta:get_float("srcTime")>=meta:get_float("maxSrcTime") then
|
||||||
local output=craftResultProxy(config.method,srcSlot)
|
local output=craftResultProxy(config.method,srcSlot)
|
||||||
if output.item:get_count()>0 then
|
if output.item:get_count()>0 then
|
||||||
inv:set_stack("src",1,output.src)
|
|
||||||
inv:add_item("dst",output.item)
|
inv:add_item("dst",output.item)
|
||||||
meta:set_float("srcTime",-1)
|
meta:set_float("srcTime",-1)
|
||||||
meta:set_float("maxSrcTime",0)
|
meta:set_float("maxSrcTime",0)
|
||||||
end
|
end
|
||||||
|
inv:set_stack("src",1,output.src)
|
||||||
end
|
end
|
||||||
if not industrialtest.api.isFullyCharged(meta) then
|
if not industrialtest.api.isFullyCharged(meta) then
|
||||||
industrialtest.api.triggerNeighbours(pos)
|
industrialtest.api.triggerNeighbours(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user