Skip to content

Commit d2a486d

Browse files
committed
fix deprecated functions
1 parent 3bd5275 commit d2a486d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ ropes.move_players_down = function(pos, radius)
106106
local _,obj
107107
for _,obj in pairs(all_objects) do
108108
if obj:is_player() then
109-
local obj_pos = obj:getpos()
109+
local obj_pos = obj:get_pos()
110110
if math.abs(obj_pos.x-pos.x) < 0.5 and math.abs(obj_pos.z-pos.z) < 0.5 then
111-
obj:moveto({x=obj_pos.x, y=obj_pos.y-1, z=obj_pos.z}, true)
111+
obj:set_pos({x=obj_pos.x, y=obj_pos.y-1, z=obj_pos.z}, true)
112112
end
113113
end
114114
end

0 commit comments

Comments
 (0)