fix deprecated functions

This commit is contained in:
FaceDeer 2021-04-02 11:57:39 -06:00
parent 3bd52754de
commit d2a486d02a

@ -106,9 +106,9 @@ ropes.move_players_down = function(pos, radius)
local _,obj local _,obj
for _,obj in pairs(all_objects) do for _,obj in pairs(all_objects) do
if obj:is_player() then 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 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 end
end end