mirror of
https://github.com/minetest-mods/ropes.git
synced 2024-11-28 02:13:43 +01:00
fix deprecated functions
This commit is contained in:
parent
3bd52754de
commit
d2a486d02a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user