mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-03-31 09:40:43 +02:00
parent
24b398aa10
commit
1fd331615a
@ -62,10 +62,14 @@ minetest.register_globalstep(function(dtime)
|
|||||||
|
|
||||||
if pos.z >= edge then
|
if pos.z >= edge then
|
||||||
newpos = {x = pos.x, y = 10, z = -newedge}
|
newpos = {x = pos.x, y = 10, z = -newedge}
|
||||||
newpos.y = get_surface_pos(newpos).y+1 -- /MFF (Mg|19/05//15)
|
if get_surface_pos(newpos) then
|
||||||
|
newpos.y = get_surface_pos(newpos).y+1 -- /MFF (Mg|19/05//15)
|
||||||
|
end -- /MFF (Mg|14/07/15)
|
||||||
elseif pos.z <= -edge then
|
elseif pos.z <= -edge then
|
||||||
newpos = {x = pos.x, y = 10, z = newedge}
|
newpos = {x = pos.x, y = 10, z = newedge}
|
||||||
newpos.y = get_surface_pos(newpos).y+1 -- /MFF (Mg|19/05/15)
|
if get_surface_pos(newpos) then
|
||||||
|
newpos.y = get_surface_pos(newpos).y+1 -- /MFF (Mg|19/05/15)
|
||||||
|
end -- /MFF (Mg|14/07/15)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Teleport the player
|
-- Teleport the player
|
||||||
|
Loading…
x
Reference in New Issue
Block a user