diff options
author | Jeija <jeija@mesecons.net> | 2014-03-19 15:13:23 +0100 |
---|---|---|
committer | Jeija <jeija@mesecons.net> | 2014-03-19 15:13:23 +0100 |
commit | 37405e5a066fd1d6be42ff1242ef21055c328953 (patch) | |
tree | b23e3a969ef9b43661f503d371056d97e4167bc9 | |
parent | 3d2cfeace8d19ee27e1111523d11158fa7d045a8 (diff) | |
download | mesecons-37405e5a066fd1d6be42ff1242ef21055c328953.tar mesecons-37405e5a066fd1d6be42ff1242ef21055c328953.tar.gz mesecons-37405e5a066fd1d6be42ff1242ef21055c328953.tar.bz2 mesecons-37405e5a066fd1d6be42ff1242ef21055c328953.tar.xz mesecons-37405e5a066fd1d6be42ff1242ef21055c328953.zip |
Fix #146
-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) |