mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-29 00:37:29 +01:00
Fix #146
This commit is contained in:
parent
3d2cfeace8
commit
37405e5a06
@ -3,8 +3,9 @@ mesecon.on_placenode = function (pos, node)
|
|||||||
mesecon:receptor_on(pos, mesecon:receptor_get_rules(node))
|
mesecon:receptor_on(pos, mesecon:receptor_get_rules(node))
|
||||||
elseif mesecon:is_powered(pos) then
|
elseif mesecon:is_powered(pos) then
|
||||||
if mesecon:is_conductor(node.name) then
|
if mesecon:is_conductor(node.name) then
|
||||||
|
-- receptor_on if itself is powered already
|
||||||
mesecon:turnon (pos)
|
mesecon:turnon (pos)
|
||||||
--mesecon:receptor_on (pos, mesecon:conductor_get_rules(node))
|
mesecon:receptor_on (pos, mesecon:conductor_get_rules(node))
|
||||||
else
|
else
|
||||||
mesecon:changesignal(pos, node, mesecon:effector_get_rules(node), "on", 1)
|
mesecon:changesignal(pos, node, mesecon:effector_get_rules(node), "on", 1)
|
||||||
mesecon:activate(pos, node, nil, 1)
|
mesecon:activate(pos, node, nil, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user