From dc27c5a2369b9a571538844018357e786b5adf2a Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Mon, 20 Jun 2011 00:17:08 -0600 Subject: [PATCH] Legacy teleport updated --- TShockAPI/TShock.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index dff860db..7c2e3d4e 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -428,11 +428,7 @@ namespace TShockAPI public static void Teleport(int ply, float x, float y) { - Main.player[ply].position.X = x; - Main.player[ply].position.Y = y; - NetMessage.SendData(0x0d, -1, ply, "", ply); - NetMessage.SendData(0x0d, -1, -1, "", ply); - NetMessage.syncPlayers(); + Teleport(ply, (int)x, (int)y); } public static void StartInvasion()