Finaly fixed the statements
authorJonathan Raphael Joachim Kolberg <bulldog98@freenet.de>
Thu, 25 Jul 2013 12:10:58 +0000 (14:10 +0200)
committerJonathan Raphael Joachim Kolberg <bulldog98@freenet.de>
Fri, 26 Jul 2013 17:29:16 +0000 (19:29 +0200)
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

technic/machines/mv/alloy_furnace.lua
technic/machines/mv/electric_furnace.lua
technic/machines/mv/grinder.lua

index 180926262768c3b1e16508b16032a7d25cfbdf0b..e70df1c11e7d3ed61c34d02ed6abfa3d27b4345b 100644 (file)
@@ -260,9 +260,9 @@ minetest.register_abm(
                   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
                   ----------------------
index c6a1651cec6f147153b0da2c620dc6aba57c3051..a0eff217e91af9fc062054fbb177d8a092a2c324 100644 (file)
@@ -259,11 +259,11 @@ minetest.register_abm(
                      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
                ----------------------
                
index 84710c94c4d635e74ea6cb5676542850c9d06a8a..84a885a394b99128793a0cc26a5a80bec7a5dd3e 100644 (file)
@@ -237,9 +237,9 @@ minetest.register_abm(
                        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