SendTileSquare prior to teleporting, to attempt to prevent weird teleport bugs.
This commit is contained in:
parent
616ba0b25a
commit
2ca623161c
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue