From ccda71027be9b64ac432ff535185bb0812c19b9f Mon Sep 17 00:00:00 2001 From: k0rd Date: Sun, 29 Jan 2012 03:07:19 -0500 Subject: [PATCH] attempting to fix client/server tile disagreements after teleporting --- TShockAPI/TSPlayer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index dfa932ce..441543c5 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -270,6 +270,9 @@ namespace TShockAPI TPlayer.position.X = (float)(tilex * 16 + 8 - TPlayer.width /2); TPlayer.position.Y = (float)(tiley * 16 - TPlayer.height); + //We need to send the tile data again to prevent clients from thinking they *really* destroyed blocks just now. + + SendTileSquare(tilex, tiley, 150); return true; }