mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-08-21 05:24:11 +02:00
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_powered(pos) then
|
||||||
if mesecon:is_conductor_off(node.name) then
|
if mesecon:is_conductor_off(node.name) then
|
||||||
mesecon:turnon(pos)
|
mesecon:turnon(pos, node)
|
||||||
else
|
else
|
||||||
mesecon:changesignal(pos)
|
mesecon:changesignal(pos, node)
|
||||||
mesecon:activate(pos)
|
mesecon:activate(pos, node)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user