forked from minetest-mods/MoreMesecons
Bugfix for the teleporter
This commit is contained in:
parent
7458da8f62
commit
f134e69f1a
|
@ -40,7 +40,7 @@ local teleport_nearest = function(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if newpos.x then
|
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)
|
nearest:moveto(newpos)
|
||||||
minetest.log("action", "Player "..nearest:get_player_name().." was teleport with a MoreMesecons Teleporter.")
|
minetest.log("action", "Player "..nearest:get_player_name().." was teleport with a MoreMesecons Teleporter.")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user