forked from minetest-mods/mesecons
depend on mesecons_delayer's all_rules instead of getting both insulated
and microcontroller rules
This commit is contained in:
parent
9fbc4b4587
commit
6aa330e85c
@ -1,4 +1,6 @@
|
||||
mesecons
|
||||
mesecons_microcontroller
|
||||
mesecons_delayer
|
||||
|
||||
mesecons_torch
|
||||
mesecons_materials
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user