mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-27 15:57:28 +01:00
Finally fix mesecon:updatenode
This commit is contained in:
parent
6b5c789204
commit
f4782df445
@ -385,7 +385,7 @@ function mesecon:check_if_turnon(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mesecon:updatenode(pos)
|
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)
|
mesecon:turnon(pos, 0, 0, 0)
|
||||||
else
|
else
|
||||||
mesecon:turnoff(pos, 0, 0, 0)
|
mesecon:turnoff(pos, 0, 0, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user