forked from minetest-mods/mesecons
Fix a bug that occured when placing an effector next to a receptor
This commit is contained in:
parent
de46729b97
commit
659060ddcd
@ -18,10 +18,10 @@ minetest.register_on_placenode(
|
||||
|
||||
if mesecon:is_powered(pos) then
|
||||
if mesecon:is_conductor_off(node.name) then
|
||||
mesecon:turnon(pos)
|
||||
mesecon:turnon(pos, node)
|
||||
else
|
||||
mesecon:changesignal(pos)
|
||||
mesecon:activate(pos)
|
||||
mesecon:changesignal(pos, node)
|
||||
mesecon:activate(pos, node)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user