Don't send PlayerTeam packet twice in SetTeam

This commit is contained in:
Egor 2018-04-26 22:29:41 +03:00
parent 035e9d114b
commit ec44ae6ff6

View file

@ -1520,7 +1520,6 @@ namespace TShockAPI
{
Main.player[Index].team = team;
NetMessage.SendData((int)PacketTypes.PlayerTeam, -1, -1, NetworkText.Empty, Index);
NetMessage.SendData((int)PacketTypes.PlayerTeam, -1, Index, NetworkText.Empty, Index);
}
private DateTime LastDisableNotification = DateTime.UtcNow;