diff --git a/AutoBC/AutoBC.cs b/AutoBC/AutoBC.cs index 2585a35..acc357c 100644 --- a/AutoBC/AutoBC.cs +++ b/AutoBC/AutoBC.cs @@ -62,7 +62,7 @@ public override void Initialize() private void PlayerLeft(LeaveEventArgs args) { - if (TShock.Players.Count() == 0) + if (Main.player.Where(p=>p != null && p.active).Count() <= 1) { shouldBeBroadcasting = false; } @@ -70,7 +70,7 @@ private void PlayerLeft(LeaveEventArgs args) private void PlayerJoined(GreetPlayerEventArgs args) { - if(TShock.Players.Count() > 0 && shouldBeBroadcasting == false) + if(shouldBeBroadcasting == false) { shouldBeBroadcasting = true; ContinueBC();