SendTileSquare prior to teleporting, to attempt to prevent weird teleport bugs.

This commit is contained in:
Zack Piispanen 2013-10-03 19:17:46 -04:00
parent 616ba0b25a
commit 2ca623161c

View file

@ -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;