Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Mar 18, 2024
1 parent 519492a commit 1884bd0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Content.Server/Antag/AntagSelectionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,23 @@ public List<EntityUid> GetEligiblePlayers(IEnumerable<ICommonSession> playerSess

foreach (var player in playerSessions)
{
if (IsPlayerEligible(player, antagPrototype, includeAllJobs, acceptableAntags, ignorePreferences, allowNonHumanoids, customExcludeCondition))
eligiblePlayers.Add(player.AttachedEntity!.Value);
try
{
if (IsPlayerEligible(player, antagPrototype, includeAllJobs, acceptableAntags, ignorePreferences, allowNonHumanoids, customExcludeCondition))
eligiblePlayers.Add(player.AttachedEntity!.Value);
}
catch (Exception
#if !DEBUG
err
#endif
)
{
#if DEBUG
throw;
#else
Logger.GetSawmill("AntagSelectionSystem").Error(err.ToString());
#endif
}
}

return eligiblePlayers;
Expand Down

0 comments on commit 1884bd0

Please sign in to comment.