depend on mesecons_delayer's all_rules instead of getting both insulated

and microcontroller rules
This commit is contained in:
Kyle 2012-09-05 10:09:53 -07:00
parent 9fbc4b4587
commit 6aa330e85c
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
mesecons mesecons
mesecons_microcontroller mesecons_microcontroller
mesecons_delayer
mesecons_torch mesecons_torch
mesecons_materials mesecons_materials

View File

@ -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
end end
@ -137,7 +137,7 @@ function set_gate(pos, on)
if on then if on then
mesecon:receptor_on(pos, get_gate_rules(param2, true)) mesecon:receptor_on(pos, get_gate_rules(param2, true))
else else
mesecon:receptor_off(pos, mesecon:get_rules("insulated_all")) mesecon:receptor_off(pos, all_rules)
end end
end end
end end