Fix movestones sometimes not starting to move again when they are at the

end of the wire
This commit is contained in:
Jeija 2015-02-17 20:02:24 +01:00
parent 1df6e5a03b
commit 1ee3b2107d
1 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,10 @@ function mesecon.register_movestone(name, def, is_sticky)
end
local direction = mesecon.get_movestone_direction(pos)
if not direction then return end
if not direction then
minetest.set_node(pos, {name = name})
return
end
local frontpos = vector.add(pos, direction)
local backpos = vector.subtract(pos, direction)