Skip to content

Commit

Permalink
fix deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
FaceDeer committed Apr 2, 2021
1 parent 3bd5275 commit d2a486d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2a486d

Please sign in to comment.