Properly update position for hacky noclip detection and teleportation methods.

This commit is contained in:
k0rd 2012-01-25 23:28:35 -05:00
parent ab55481ddb
commit 6a1e52394a

View file

@ -268,8 +268,8 @@ namespace TShockAPI
SendWorldInfo(Main.spawnTileX, Main.spawnTileY, false);
TPlayer.position.X = tilex * 16;
TPlayer.position.Y = tiley * 16;
TPlayer.position.X = (float)(tilex * 16 + 8 - TPlayer.width /2);
TPlayer.position.Y = (float)(tiley * 16 - TPlayer.height);
return true;
}