1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-26 02:30:38 +01:00

fix teleport to nether don't work

This commit is contained in:
crabman77 2016-06-10 14:26:54 +02:00
parent 58d9a39312
commit 06d5335d90

View File

@ -686,8 +686,9 @@ function nether_port(player, pos)
pos.y = y pos.y = y
end end
player:moveto(pos) player:moveto(pos)
elseif nether.spawn_point then else
player:moveto(nether.spawn_point) if nether.spawn_point then
pos = nether.spawn_point
else else
set_portal(known_portals_u, pos.z,pos.x, pos.y) set_portal(known_portals_u, pos.z,pos.x, pos.y)
@ -702,6 +703,7 @@ function nether_port(player, pos)
end end
pos.y = y pos.y = y
end
player:moveto(pos) player:moveto(pos)
nether.player_to_nether(player, true) nether.player_to_nether(player, true)
end end