Merge pull request #1619 from DankRank/redundant-setteam

Don't send PlayerTeam packet twice in SetTeam
This commit is contained in:
Lucas Nicodemus 2018-04-26 19:11:26 -06:00 committed by GitHub
commit 691aa043a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;