From 37405e5a066fd1d6be42ff1242ef21055c328953 Mon Sep 17 00:00:00 2001 From: Jeija Date: Wed, 19 Mar 2014 15:13:23 +0100 Subject: [PATCH] Fix #146 --- mesecons/services.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)