Skip to content

Commit

Permalink
Merge pull request #44 from THEXN/master
Browse files Browse the repository at this point in the history
fix autob 防止协议端空引用卡服
  • Loading branch information
Controllerdestiny authored Apr 22, 2024
2 parents 9a3815f + 46abe98 commit 47950d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AutoBroadcast/AutoBroadcast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public void autobc()
#region Chat
public void OnChat(ServerChatEventArgs args)
{
if (TShock.Players[args.Who] == null)
{
return;
}
string[] Groups = new string[0];
string[] Messages = new string[0];
float[] Colour = new float[0];
Expand Down

0 comments on commit 47950d7

Please sign in to comment.