Minor dependency and variable cleanup. (#36730)
removal of misc unused or extra dependency definitions.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user