summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <jeija@mesecons.net>2014-01-11 18:31:30 +0100
committerJeija <jeija@mesecons.net>2014-01-11 18:31:30 +0100
commit1a492feb7a137a7acfe8cc4d5849970556478e40 (patch)
tree38f710c969caf5d3a6c2206dd2af05803510f94e
parentd066b91632ac34df15c731bd86671ef78f52d3df (diff)
downloadmesecons-1a492feb7a137a7acfe8cc4d5849970556478e40.tar
mesecons-1a492feb7a137a7acfe8cc4d5849970556478e40.tar.gz
mesecons-1a492feb7a137a7acfe8cc4d5849970556478e40.tar.bz2
mesecons-1a492feb7a137a7acfe8cc4d5849970556478e40.tar.xz
mesecons-1a492feb7a137a7acfe8cc4d5849970556478e40.zip
Turnon/turnoff overwritable
-rw-r--r--mesecons/internal.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesecons/internal.lua b/mesecons/internal.lua
index 0d998d3..32a28b2 100644
--- a/mesecons/internal.lua
+++ b/mesecons/internal.lua
@@ -372,7 +372,7 @@ function mesecon:turnon(pos, rulename, recdepth)
if(node.name == "ignore") then
-- try turning on later again
mesecon.queue:add_action(
- pos, "turnon", {rulename, recdepth + 1}, nil, rulename)
+ pos, "turnon", {rulename, recdepth + 1}, nil, true)
end
if mesecon:is_conductor_off(node, rulename) then
@@ -394,7 +394,7 @@ function mesecon:turnon(pos, rulename, recdepth)
if(minetest.get_node(np).name == "ignore") then
-- try turning on later again
mesecon.queue:add_action(
- np, "turnon", {rulename, recdepth + 1}, nil, rulename)
+ np, "turnon", {rulename, recdepth + 1}, nil, true)
else
local rulenames = mesecon:rules_link_rule_all(pos, rule)
@@ -422,7 +422,7 @@ function mesecon:turnoff(pos, rulename, recdepth)
if(node.name == "ignore") then
-- try turning on later again
mesecon.queue:add_action(
- pos, "turnoff", {rulename, recdepth + 1}, nil, rulename)
+ pos, "turnoff", {rulename, recdepth + 1}, nil, true)
end
if mesecon:is_conductor_on(node, rulename) then
@@ -434,7 +434,7 @@ function mesecon:turnoff(pos, rulename, recdepth)
if(minetest.get_node(np).name == "ignore") then
-- try turning on later again
mesecon.queue:add_action(
- np, "turnoff", {rulename, recdepth + 1}, nil, rulename)
+ np, "turnoff", {rulename, recdepth + 1}, nil, true)
else
local rulenames = mesecon:rules_link_rule_all(pos, rule)