summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2012-08-08 12:31:00 +0200
committersfan5 <sfan5@live.de>2012-08-08 12:31:00 +0200
commitf4782df445723a5911601bf3f10a625dbff586fe (patch)
tree5c5b7c1e304d17997ced721d4ae5a24a79e4c98a
parent6b5c7892048c9ae525ac993e6f0fe24de7d3e7f3 (diff)
downloadmesecons-f4782df445723a5911601bf3f10a625dbff586fe.tar
mesecons-f4782df445723a5911601bf3f10a625dbff586fe.tar.gz
mesecons-f4782df445723a5911601bf3f10a625dbff586fe.tar.bz2
mesecons-f4782df445723a5911601bf3f10a625dbff586fe.tar.xz
mesecons-f4782df445723a5911601bf3f10a625dbff586fe.zip
Finally fix mesecon:updatenode
-rw-r--r--mesecons/internal_api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons/internal_api.lua b/mesecons/internal_api.lua
index 2054cfd..2e99258 100644
--- a/mesecons/internal_api.lua
+++ b/mesecons/internal_api.lua
@@ -385,7 +385,7 @@ function mesecon:check_if_turnon(pos)
end
function mesecon:updatenode(pos)
- if mesecon:connected_to_pw_src(pos) then
+ if mesecon:connected_to_pw_src(pos, 0, 0, 0) then
mesecon:turnon(pos, 0, 0, 0)
else
mesecon:turnoff(pos, 0, 0, 0)