Try and make the fall/nudge up smarter.
This commit is contained in:
parent
9dbf15df24
commit
b7ae89b58d
@ -373,9 +373,9 @@ function boxes.open_box(player, box_id_list)
|
||||
end
|
||||
|
||||
local p = player:get_pos()
|
||||
if p and p.y < spawn_pos.y - 0.25 and boxes.players_in_boxes[name] then
|
||||
if p and p.y < spawn_pos.y - 0.45 and boxes.players_in_boxes[name] then
|
||||
minetest.log("error", name .. " fell from an entrance lobby")
|
||||
player:set_pos(spawn_pos)
|
||||
player:set_pos({pos.x, spawn_pos.y + 0.5, pos.z})
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user