Finally fix mesecon:updatenode

This commit is contained in:
sfan5 2012-08-08 12:31:00 +02:00
parent 6b5c789204
commit f4782df445

View File

@ -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)