Skip to content

Commit

Permalink
Merge branch 'main' into virtual-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
KillStr3aK authored Nov 13, 2024
2 parents 8d60cf9 + 6cf124b commit 78639d4
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,11 @@ public CCSPlayerController this[int index]
public void Add(int slot)
{
var player = Utilities.GetPlayerFromSlot(slot);
if (player == null)
if (player != null)
{
throw new ArgumentException($"Player with slot {slot} not found");
_recipients.Add(player);
CollectionChanged?.Invoke();
}

_recipients.Add(player);
CollectionChanged?.Invoke();
}

public void AddAllPlayers()
Expand Down

0 comments on commit 78639d4

Please sign in to comment.