From d2a486d02aad60b2a47dd85675fed5a67f65f0b6 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Fri, 2 Apr 2021 11:57:39 -0600 Subject: [PATCH] fix deprecated functions --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index a4bd53d..6a366f9 100644 --- a/functions.lua +++ b/functions.lua @@ -106,9 +106,9 @@ ropes.move_players_down = function(pos, radius) local _,obj for _,obj in pairs(all_objects) do if obj:is_player() then - local obj_pos = obj:getpos() + local obj_pos = obj:get_pos() if math.abs(obj_pos.x-pos.x) < 0.5 and math.abs(obj_pos.z-pos.z) < 0.5 then - obj:moveto({x=obj_pos.x, y=obj_pos.y-1, z=obj_pos.z}, true) + obj:set_pos({x=obj_pos.x, y=obj_pos.y-1, z=obj_pos.z}, true) end end end