From 2ca623161c7ab0846b5dc03fd13c1b7e88444753 Mon Sep 17 00:00:00 2001 From: Zack Piispanen Date: Thu, 3 Oct 2013 19:17:46 -0400 Subject: [PATCH] SendTileSquare prior to teleporting, to attempt to prevent weird teleport bugs. --- TShockAPI/TSPlayer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index f31e0dd9..950df7cb 100755 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -573,6 +573,7 @@ namespace TShockAPI y = 992; } + SendTileSquare((int) (x/16), (int) (y/16), 15); TPlayer.Teleport(new Vector2(x, y), style); NetMessage.SendData((int)PacketTypes.Teleport, -1, -1, "", 0, TPlayer.whoAmi, x, y, style); return true;