From 22a83072a4a8456c9689e178387b380d1e68c0f2 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Fri, 4 Feb 2022 16:45:13 +1100 Subject: [PATCH] fix deprecated use of `getpos` fixes #54 --- teleport_back.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleport_back.lua b/teleport_back.lua index fe6a2e7..0f3c748 100644 --- a/teleport_back.lua +++ b/teleport_back.lua @@ -17,7 +17,7 @@ minetest.register_globalstep(function(dtime) for _,player in ipairs(minetest.get_connected_players()) do - local pos = player:getpos() + local pos = player:get_pos() -- check if player can travel there local can_travel, err_msg = pandorabox.can_travel(player, pos)