Fixed Teleport, needs a nice / 16

This commit is contained in:
Deathmax 2011-06-20 21:21:55 +08:00
parent d79412912d
commit fb86c4636c

View file

@ -414,8 +414,8 @@ namespace TShockAPI
{
int oldSpawnX = Main.spawnTileX;
int oldSpawnY = Main.spawnTileY;
Main.spawnTileX = x;
Main.spawnTileY = y;
Main.spawnTileX = x/16;
Main.spawnTileY = y/16;
//Send only that player the new spawn point data
NetMessage.SendData(7, ply, -1, "", 0, 0f, 0f, 0f);
//Force them to respawn