attempting to fix client/server tile disagreements after teleporting
This commit is contained in:
parent
1e8cb04fdd
commit
ccda71027b
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue