This commit is contained in:
White 2015-11-01 12:13:17 +10:30
parent 7e8f0ea8e4
commit 7d4a96cfee
2 changed files with 3 additions and 2 deletions

View file

@ -811,7 +811,8 @@ namespace TShockAPI
public virtual void SetTeam(int team)
{
Main.player[Index].team = team;
SendData(PacketTypes.PlayerTeam, "", Index);
NetMessage.SendData((int)PacketTypes.PlayerTeam, -1, -1, "", Index);
NetMessage.SendData((int)PacketTypes.PlayerTeam, -1, Index, "", Index);
}
private DateTime LastDisableNotification = DateTime.UtcNow;