From fb86c4636c206404eb823b50a4fe37c4071ab9d6 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Mon, 20 Jun 2011 21:21:55 +0800 Subject: [PATCH] Fixed Teleport, needs a nice / 16 --- TShockAPI/TShock.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 7c2e3d4e..079e779d 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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