diff options
-rw-r--r-- | mesecons_gates/depends.txt | 2 | ||||
-rw-r--r-- | mesecons_gates/init.lua | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mesecons_gates/depends.txt b/mesecons_gates/depends.txt index 4ed39f9..f3e0392 100644 --- a/mesecons_gates/depends.txt +++ b/mesecons_gates/depends.txt @@ -1,4 +1,6 @@ mesecons mesecons_microcontroller +mesecons_delayer + mesecons_torch mesecons_materials diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua index aa9da75..8a4629f 100644 --- a/mesecons_gates/init.lua +++ b/mesecons_gates/init.lua @@ -85,7 +85,7 @@ for g in ipairs(gates) do gate = gates[g] }) - mesecon:register_effector(nodename, nodename, mesecon:get_rules("insulated_all"), get_rules) + mesecon:register_effector(nodename, nodename, all_rules, get_rules) end end @@ -137,7 +137,7 @@ function set_gate(pos, on) if on then mesecon:receptor_on(pos, get_gate_rules(param2, true)) else - mesecon:receptor_off(pos, mesecon:get_rules("insulated_all")) + mesecon:receptor_off(pos, all_rules) end end end |