Bugfix for the teleporter

This commit is contained in:
palige 2015-08-29 18:12:40 +02:00
parent 7458da8f62
commit f134e69f1a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ local teleport_nearest = function(pos)
end
end
if newpos.x then
if vector.distance(pos, nearest:getpos()) > MAX_DISTANCE then return end
if vector.distance(newpos, nearest:getpos()) > MAX_DISTANCE then return end
nearest:moveto(newpos)
minetest.log("action", "Player "..nearest:get_player_name().." was teleport with a MoreMesecons Teleporter.")
end