summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Raphael Joachim Kolberg <bulldog98@freenet.de>2013-07-25 14:10:58 +0200
committerJonathan Raphael Joachim Kolberg <bulldog98@freenet.de>2013-07-26 19:29:16 +0200
commit50b8aed01c988de4c173ecb72b12ced667d0d595 (patch)
tree850132cd66cc0605bb986f19f089ca06294e4523
parent55caa109c95f9dfbca29411fa8e354b0fd1cdbbb (diff)
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
-rw-r--r--technic/machines/mv/alloy_furnace.lua6
-rw-r--r--technic/machines/mv/electric_furnace.lua10
-rw-r--r--technic/machines/mv/grinder.lua6
3 files changed, 11 insertions, 11 deletions
diff --git a/technic/machines/mv/alloy_furnace.lua b/technic/machines/mv/alloy_furnace.lua
index 1809262..e70df1c 100644
--- a/technic/machines/mv/alloy_furnace.lua
+++ b/technic/machines/mv/alloy_furnace.lua
@@ -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
----------------------
diff --git a/technic/machines/mv/electric_furnace.lua b/technic/machines/mv/electric_furnace.lua
index c6a1651..a0eff21 100644
--- a/technic/machines/mv/electric_furnace.lua
+++ b/technic/machines/mv/electric_furnace.lua
@@ -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
----------------------
diff --git a/technic/machines/mv/grinder.lua b/technic/machines/mv/grinder.lua
index 84710c9..84a885a 100644
--- a/technic/machines/mv/grinder.lua
+++ b/technic/machines/mv/grinder.lua
@@ -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