Fix a bug that occured when placing an effector next to a receptor

This commit is contained in:
Jeija 2012-12-11 19:54:53 +01:00
parent de46729b97
commit 659060ddcd

View File

@ -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