hdastwb
2013-07-24 2d7f750d9a734e2c84cc1ee14746a4ee2f8757e6
fixed a condition with mv machines so as to not power down machines with stuff to grind/smelt but nothing to tube out
3 files modified
9 ■■■■■ changed files
technic/machines/mv/alloy_furnace.lua 3 ●●●● patch | view | raw | blame | history
technic/machines/mv/electric_furnace.lua 3 ●●●● patch | view | raw | blame | history
technic/machines/mv/grinder.lua 3 ●●●● patch | view | raw | blame | history
technic/machines/mv/alloy_furnace.lua
@@ -262,8 +262,7 @@
           -- 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
           ----------------------
technic/machines/mv/electric_furnace.lua
@@ -262,8 +262,7 @@
           
           -- 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
        ----------------------
technic/machines/mv/grinder.lua
@@ -239,8 +239,7 @@
            -- 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