Skip to content

Commit

Permalink
fix: simple patch as we have no EntityWhitelistSystem yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Remuchi committed Oct 11, 2024
1 parent a9158b4 commit 309eed8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Content.Server/Antag/AntagSelectionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using Content.Shared.Ghost;
using Content.Shared.Humanoid;
using Content.Shared.Players;
using Content.Shared.Whitelist;
using Robust.Server.Audio;
using Robust.Server.GameObjects;
using Robust.Server.Player;
Expand All @@ -41,7 +40,6 @@ public sealed partial class AntagSelectionSystem : GameRuleSystem<AntagSelection
[Dependency] private readonly RoleSystem _role = default!;
[Dependency] private readonly StationSpawningSystem _stationSpawning = default!;
[Dependency] private readonly TransformSystem _transform = default!;
[Dependency] private readonly EntityWhitelistSystem _whitelist = default!;

// arbitrary random number to give late joining some mild interest.
public const float LateJoinRandomChance = 0.5f;
Expand Down Expand Up @@ -406,13 +404,13 @@ public bool IsEntityValid(EntityUid? entity, AntagSelectionDefinition def)

if (def.Whitelist != null)
{
if (!_whitelist.IsValid(def.Whitelist, entity.Value))
if (!def.Whitelist.IsValid(entity.Value))
return false;
}

if (def.Blacklist != null)
{
if (_whitelist.IsValid(def.Blacklist, entity.Value))
if (def.Blacklist.IsValid(entity.Value))
return false;
}

Expand Down

0 comments on commit 309eed8

Please sign in to comment.