mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-25 10:20:37 +01:00
Merge pull request #64 from hdastwb/mvidlecond
fix the mv tube-enabled idle condition
This commit is contained in:
commit
f4d9a1e4e7
@ -262,8 +262,7 @@ minetest.register_abm(
|
||||
|
||||
-- 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.
|
||||
if (not output_tube_connected and inv:is_empty("src"))
|
||||
or ( output_tube_connected and inv:is_empty("dst")) then
|
||||
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
||||
next_state = 1
|
||||
end
|
||||
----------------------
|
||||
|
@ -262,8 +262,7 @@ minetest.register_abm(
|
||||
|
||||
-- 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.
|
||||
if (not output_tube_connected and inv:is_empty("src"))
|
||||
or ( output_tube_connected and inv:is_empty("dst")) then
|
||||
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
||||
next_state = 1
|
||||
end
|
||||
----------------------
|
||||
|
@ -239,8 +239,7 @@ minetest.register_abm(
|
||||
|
||||
-- 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.
|
||||
if (not output_tube_connected and inv:is_empty("src"))
|
||||
or ( output_tube_connected and inv:is_empty("dst")) then
|
||||
if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
|
||||
next_state = 1
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user