diff options
author | Kyle <kyle.kylina@gmail.com> | 2012-09-05 10:09:53 -0700 |
---|---|---|
committer | Kyle <kyle.kylina@gmail.com> | 2012-09-05 10:09:53 -0700 |
commit | 6aa330e85c3612fc24c9d5b24d3b53b4f9f93348 (patch) | |
tree | 8256bf563fe8b283c8da102ca5fb5def658f232e | |
parent | 9fbc4b4587b1aa6dca926ddf6105f022f01055b1 (diff) | |
download | mesecons-6aa330e85c3612fc24c9d5b24d3b53b4f9f93348.tar mesecons-6aa330e85c3612fc24c9d5b24d3b53b4f9f93348.tar.gz mesecons-6aa330e85c3612fc24c9d5b24d3b53b4f9f93348.tar.bz2 mesecons-6aa330e85c3612fc24c9d5b24d3b53b4f9f93348.tar.xz mesecons-6aa330e85c3612fc24c9d5b24d3b53b4f9f93348.zip |
depend on mesecons_delayer's all_rules instead of getting both insulated
and microcontroller rules
-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 |