Jonathan Raphael Joachim Kolberg
2013-07-25 50b8aed01c988de4c173ecb72b12ced667d0d595
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
3 files modified
22 ■■■■ changed files
technic/machines/mv/alloy_furnace.lua 6 ●●●● patch | view | raw | blame | history
technic/machines/mv/electric_furnace.lua 10 ●●●● patch | view | raw | blame | history
technic/machines/mv/grinder.lua 6 ●●●● patch | view | raw | blame | history
technic/machines/mv/alloy_furnace.lua
@@ -260,9 +260,9 @@
           end
           meta:set_int("tube_time", tube_time)
           -- 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 inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
           -- The machine shuts down if we have nothing to smelt since we tube stuff
           -- out while being idle.
           if inv:is_empty("src") then
              next_state = 1
           end
           ----------------------
technic/machines/mv/electric_furnace.lua
@@ -259,11 +259,11 @@
              end
           end
           meta:set_int("tube_time", tube_time)
           -- 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 inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
           next_state = 1
        -- The machine shuts down if we have nothing to smelt since we tube stuff
        -- out while being idle.
        if inv:is_empty("src") then
            next_state = 1
        end
        ----------------------
        
technic/machines/mv/grinder.lua
@@ -237,9 +237,9 @@
            end
            meta:set_int("tube_time", tube_time)
            -- 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 inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
            -- The machine shuts down if we have nothing to smelt since we tube stuff
            -- out while being idle.
            if inv:is_empty("src") then
                next_state = 1
            end