Fix doser goes blocked bug
This commit is contained in:
parent
83b2bd483f
commit
68a8555825
@ -159,8 +159,10 @@ function techage.recipes.on_receive_fields(pos, formname, fields, player)
|
|||||||
if not nvm.running then
|
if not nvm.running then
|
||||||
if fields.next == ">>" then
|
if fields.next == ">>" then
|
||||||
nvm.recipe_idx = nvm.recipe_idx + 1
|
nvm.recipe_idx = nvm.recipe_idx + 1
|
||||||
|
return true
|
||||||
elseif fields.priv == "<<" then
|
elseif fields.priv == "<<" then
|
||||||
nvm.recipe_idx = nvm.recipe_idx - 1
|
nvm.recipe_idx = nvm.recipe_idx - 1
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -113,9 +113,6 @@ local function start_node(pos, nvm, state)
|
|||||||
reactor_cmnd(pos, "start")
|
reactor_cmnd(pos, "start")
|
||||||
del_liquids(pos)
|
del_liquids(pos)
|
||||||
nvm.running = true
|
nvm.running = true
|
||||||
local mem = techage.get_mem(pos)
|
|
||||||
mem.waste_leftover = nil
|
|
||||||
mem.output_leftover = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function stop_node(pos, nvm, state)
|
local function stop_node(pos, nvm, state)
|
||||||
@ -275,7 +272,11 @@ local function on_receive_fields(pos, formname, fields, player)
|
|||||||
|
|
||||||
local nvm = techage.get_nvm(pos)
|
local nvm = techage.get_nvm(pos)
|
||||||
if not nvm.running then
|
if not nvm.running then
|
||||||
recipes.on_receive_fields(pos, formname, fields, player)
|
if recipes.on_receive_fields(pos, formname, fields, player) then
|
||||||
|
local mem = techage.get_mem(pos)
|
||||||
|
mem.waste_leftover = nil
|
||||||
|
mem.output_leftover = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
local mem = techage.get_mem(pos)
|
local mem = techage.get_mem(pos)
|
||||||
mem.dbg_cycles = 5
|
mem.dbg_cycles = 5
|
||||||
|
Loading…
Reference in New Issue
Block a user