summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-11 19:54:53 +0100
committerJeija <norrepli@gmail.com>2012-12-11 19:54:53 +0100
commit659060ddcd8ae05dfb83b9696a158d4ab9725ab4 (patch)
treea5ca96958784d45af815227219e3bdd14ee13b96
parentde46729b971b5e59394834b8a01d4a7005318114 (diff)
downloadmesecons-659060ddcd8ae05dfb83b9696a158d4ab9725ab4.tar
mesecons-659060ddcd8ae05dfb83b9696a158d4ab9725ab4.tar.gz
mesecons-659060ddcd8ae05dfb83b9696a158d4ab9725ab4.tar.bz2
mesecons-659060ddcd8ae05dfb83b9696a158d4ab9725ab4.tar.xz
mesecons-659060ddcd8ae05dfb83b9696a158d4ab9725ab4.zip
Fix a bug that occured when placing an effector next to a receptor
-rw-r--r--mesecons/services.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesecons/services.lua b/mesecons/services.lua
index 1cbba5f..27900b1 100644
--- a/mesecons/services.lua
+++ b/mesecons/services.lua
@@ -18,10 +18,10 @@ minetest.register_on_placenode(
if mesecon:is_powered(pos) then
if mesecon:is_conductor_off(node.name) then
- mesecon:turnon(pos)
+ mesecon:turnon(pos, node)
else
- mesecon:changesignal(pos)
- mesecon:activate(pos)
+ mesecon:changesignal(pos, node)
+ mesecon:activate(pos, node)
end
end
end