Fix a crash in intro when joining as a new player.

This commit is contained in:
Jordach 2017-04-03 00:30:55 +01:00
parent 04d69775ee
commit 22a54dc74b

View File

@ -98,11 +98,7 @@ function intro.teleport_on_sneak(player)
local tz = math.ceil(math.random(-20000, 20000))
minetest.forceload_block({x=tx, y=0, z=tz}, true)
player:set_pos({x=tx, y=30, z=tz})
yz = intro.find_safe_y(tx, tz)
minetest.after(2, player:set_pos {x=tx, y=yz, z=tz})
player:set_pos({x=tx, y=30, z=tz})
elseif intro.use_random_spawn_point == false then
player:set_pos({x=intro.spawn_x, y=intro.spawn_y, z=intro.spawn_z})