Skip to content
Snippets Groups Projects
Commit 1ee3b210 authored by Jeija's avatar Jeija
Browse files

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

end of the wire
parent 1df6e5a0
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment