diff options
-rw-r--r-- | mesecons/services.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons/services.lua b/mesecons/services.lua index de0c8b6..a1ab03a 100644 --- a/mesecons/services.lua +++ b/mesecons/services.lua @@ -3,8 +3,9 @@ mesecon.on_placenode = function (pos, node) mesecon:receptor_on(pos, mesecon:receptor_get_rules(node)) elseif mesecon:is_powered(pos) then if mesecon:is_conductor(node.name) then + -- receptor_on if itself is powered already mesecon:turnon (pos) - --mesecon:receptor_on (pos, mesecon:conductor_get_rules(node)) + mesecon:receptor_on (pos, mesecon:conductor_get_rules(node)) else mesecon:changesignal(pos, node, mesecon:effector_get_rules(node), "on", 1) mesecon:activate(pos, node, nil, 1) |