Minor dependency and variable cleanup. (#36730)

removal of misc unused or extra dependency definitions.
This commit is contained in:
Kyle Tyo
2025-04-19 12:11:34 -04:00
committed by GitHub
parent 1daac6d86b
commit 8dc2cb8874
4 changed files with 1 additions and 6 deletions

View File

@@ -19,7 +19,6 @@ public sealed partial class StationJobsSystem
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly IBanManager _banManager = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] private readonly AntagSelectionSystem _antag = default!;
private Dictionary<int, HashSet<string>> _jobsByWeight = default!;
@@ -366,7 +365,7 @@ public sealed partial class StationJobsSystem
if (!_prototypeManager.TryIndex(jobId, out var job))
continue;
if (!job.CanBeAntag && (!_playerManager.TryGetSessionById(player, out var session) || antagBlocked.Contains(session)))
if (!job.CanBeAntag && (!_player.TryGetSessionById(player, out var session) || antagBlocked.Contains(session)))
continue;
if (weight is not null && job.Weight != weight.Value)