@@ -1324,7 +1324,7 @@ static void TeleportToZone(Player player, CommandReader cmd) {
13241324 player . LastPosition = player . Position ;
13251325 }
13261326
1327- Position pos = new Position ( x , y , z ) ;
1327+ Position pos = Position . FromFeet ( x , y , z ) ;
13281328 pos . R = player . Position . R ;
13291329 pos . L = player . Position . L ;
13301330 player . TeleportTo ( pos ) ;
@@ -1344,7 +1344,7 @@ static void TeleportToRandom(Player player, CommandReader cmd) {
13441344 player . LastPosition = player . Position ;
13451345 }
13461346
1347- Position pos = new Position ( x , y , z ) ;
1347+ Position pos = Position . FromFeet ( x , y , z ) ;
13481348 pos . R = player . Position . R ;
13491349 pos . L = player . Position . L ;
13501350 player . TeleportTo ( pos ) ;
@@ -1378,7 +1378,7 @@ static void TeleportToCoords(Player player, CommandReader cmd) {
13781378 player . LastPosition = player . Position ;
13791379 }
13801380
1381- Position pos = new Position ( x , y , z ) ;
1381+ Position pos = Position . FromFeet ( x , y , z ) ;
13821382 pos . R = ( byte ) rot ;
13831383 pos . L = ( byte ) lot ;
13841384 player . TeleportTo ( pos ) ;
@@ -1553,7 +1553,7 @@ static void TopHandler(Player player, CommandReader cmd) {
15531553 int y = player . Position . BlockY ;
15541554 int z = player . WorldMap . HighestFreeZ ( x , y ) ;
15551555
1556- Position pos = new Position ( x , y , z ) ;
1556+ Position pos = Position . FromFeet ( x , y , z ) ;
15571557 pos . R = player . Position . R ;
15581558 pos . L = player . Position . L ;
15591559 player . TeleportTo ( pos ) ;
0 commit comments