forked from minetest-mods/technic
Finaly fixed the statements
The idle condition for mv mashines is changed to what it should be because sending items into the tube is done in idle, so we only care if there is something left in src
This commit is contained in:
parent
55caa109c9
commit
50b8aed01c
|
@ -260,9 +260,9 @@ minetest.register_abm(
|
||||||
end
|
end
|
||||||
meta:set_int("tube_time", tube_time)
|
meta:set_int("tube_time", tube_time)
|
||||||
|
|
||||||
-- The machine shuts down if we have nothing to smelt and no tube is connected
|
-- The machine shuts down if we have nothing to smelt since we tube stuff
|
||||||
-- or if we have nothing to send with a tube connected.
|
-- out while being idle.
|
||||||
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
if inv:is_empty("src") then
|
||||||
next_state = 1
|
next_state = 1
|
||||||
end
|
end
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -260,9 +260,9 @@ minetest.register_abm(
|
||||||
end
|
end
|
||||||
meta:set_int("tube_time", tube_time)
|
meta:set_int("tube_time", tube_time)
|
||||||
|
|
||||||
-- The machine shuts down if we have nothing to smelt and no tube is connected
|
-- The machine shuts down if we have nothing to smelt since we tube stuff
|
||||||
-- or if we have nothing to send with a tube connected.
|
-- out while being idle.
|
||||||
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
if inv:is_empty("src") then
|
||||||
next_state = 1
|
next_state = 1
|
||||||
end
|
end
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -237,9 +237,9 @@ minetest.register_abm(
|
||||||
end
|
end
|
||||||
meta:set_int("tube_time", tube_time)
|
meta:set_int("tube_time", tube_time)
|
||||||
|
|
||||||
-- The machine shuts down if we have nothing to grind and no tube is connected
|
-- The machine shuts down if we have nothing to smelt since we tube stuff
|
||||||
-- or if we have nothing to send with a tube connected.
|
-- out while being idle.
|
||||||
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
if inv:is_empty("src") then
|
||||||
next_state = 1
|
next_state = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user