Skip to content


Browse files Browse the repository at this point in the history
Fix movestones sometimes not starting to move again when they are at the
end of the wire
  • Loading branch information
Jeija committed Feb 17, 2015
1 parent 1df6e5a commit 1ee3b21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mesecons_movestones/init.lua
Expand Up @@ -63,7 +63,10 @@ function mesecon.register_movestone(name, def, is_sticky)

local direction = mesecon.get_movestone_direction(pos)
if not direction then return end
if not direction then
minetest.set_node(pos, {name = name})
local frontpos = vector.add(pos, direction)
local backpos = vector.subtract(pos, direction)

Expand Down

0 comments on commit 1ee3b21

Please sign in to comment.