mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-29 08:47:29 +01:00
Turnon/turnoff overwritable
This commit is contained in:
parent
d066b91632
commit
1a492feb7a
@ -372,7 +372,7 @@ function mesecon:turnon(pos, rulename, recdepth)
|
|||||||
if(node.name == "ignore") then
|
if(node.name == "ignore") then
|
||||||
-- try turning on later again
|
-- try turning on later again
|
||||||
mesecon.queue:add_action(
|
mesecon.queue:add_action(
|
||||||
pos, "turnon", {rulename, recdepth + 1}, nil, rulename)
|
pos, "turnon", {rulename, recdepth + 1}, nil, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
if mesecon:is_conductor_off(node, rulename) then
|
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
|
if(minetest.get_node(np).name == "ignore") then
|
||||||
-- try turning on later again
|
-- try turning on later again
|
||||||
mesecon.queue:add_action(
|
mesecon.queue:add_action(
|
||||||
np, "turnon", {rulename, recdepth + 1}, nil, rulename)
|
np, "turnon", {rulename, recdepth + 1}, nil, true)
|
||||||
else
|
else
|
||||||
local rulenames = mesecon:rules_link_rule_all(pos, rule)
|
local rulenames = mesecon:rules_link_rule_all(pos, rule)
|
||||||
|
|
||||||
@ -422,7 +422,7 @@ function mesecon:turnoff(pos, rulename, recdepth)
|
|||||||
if(node.name == "ignore") then
|
if(node.name == "ignore") then
|
||||||
-- try turning on later again
|
-- try turning on later again
|
||||||
mesecon.queue:add_action(
|
mesecon.queue:add_action(
|
||||||
pos, "turnoff", {rulename, recdepth + 1}, nil, rulename)
|
pos, "turnoff", {rulename, recdepth + 1}, nil, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
if mesecon:is_conductor_on(node, rulename) then
|
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
|
if(minetest.get_node(np).name == "ignore") then
|
||||||
-- try turning on later again
|
-- try turning on later again
|
||||||
mesecon.queue:add_action(
|
mesecon.queue:add_action(
|
||||||
np, "turnoff", {rulename, recdepth + 1}, nil, rulename)
|
np, "turnoff", {rulename, recdepth + 1}, nil, true)
|
||||||
else
|
else
|
||||||
local rulenames = mesecon:rules_link_rule_all(pos, rule)
|
local rulenames = mesecon:rules_link_rule_all(pos, rule)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user