forked from minetest-mods/technic
fixed a condition with mv machines so as to not power down machines with stuff to grind/smelt but nothing to tube out
This commit is contained in:
parent
e38f6f0983
commit
2d7f750d9a
|
@ -262,8 +262,7 @@ minetest.register_abm(
|
||||||
|
|
||||||
-- 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 and no tube is connected
|
||||||
-- or if we have nothing to send with a tube connected.
|
-- or if we have nothing to send with a tube connected.
|
||||||
if (not output_tube_connected and inv:is_empty("src"))
|
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
||||||
or ( output_tube_connected and inv:is_empty("dst")) then
|
|
||||||
next_state = 1
|
next_state = 1
|
||||||
end
|
end
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -262,8 +262,7 @@ minetest.register_abm(
|
||||||
|
|
||||||
-- 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 and no tube is connected
|
||||||
-- or if we have nothing to send with a tube connected.
|
-- or if we have nothing to send with a tube connected.
|
||||||
if (not output_tube_connected and inv:is_empty("src"))
|
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
||||||
or ( output_tube_connected and inv:is_empty("dst")) then
|
|
||||||
next_state = 1
|
next_state = 1
|
||||||
end
|
end
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -239,8 +239,7 @@ minetest.register_abm(
|
||||||
|
|
||||||
-- The machine shuts down if we have nothing to grind and no tube is connected
|
-- The machine shuts down if we have nothing to grind and no tube is connected
|
||||||
-- or if we have nothing to send with a tube connected.
|
-- or if we have nothing to send with a tube connected.
|
||||||
if (not output_tube_connected and inv:is_empty("src"))
|
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
||||||
or ( output_tube_connected and inv:is_empty("dst")) then
|
|
||||||
next_state = 1
|
next_state = 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user