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