From f134e69f1a2f7a8846dc306ccb6ac61f3c804aeb Mon Sep 17 00:00:00 2001 From: palige Date: Sat, 29 Aug 2015 18:12:40 +0200 Subject: [PATCH] Bugfix for the teleporter --- moremesecons_teleporter/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moremesecons_teleporter/init.lua b/moremesecons_teleporter/init.lua index 8b2c7c5..0ada2ff 100644 --- a/moremesecons_teleporter/init.lua +++ b/moremesecons_teleporter/init.lua @@ -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