From 8dc2cb8874726e069f475d8b9f5cf8462ec3dff8 Mon Sep 17 00:00:00 2001 From: Kyle Tyo <36606155+VerinSenpai@users.noreply.github.com> Date: Sat, 19 Apr 2025 12:11:34 -0400 Subject: [PATCH] Minor dependency and variable cleanup. (#36730) removal of misc unused or extra dependency definitions. --- Content.Client/RCD/RCDConstructionGhostSystem.cs | 1 - .../UserInterface/Systems/Actions/ActionUIController.cs | 1 - .../UserInterface/Systems/Actions/Controls/ActionButton.cs | 2 -- Content.Server/Station/Systems/StationJobsSystem.Roundstart.cs | 3 +-- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Content.Client/RCD/RCDConstructionGhostSystem.cs b/Content.Client/RCD/RCDConstructionGhostSystem.cs index 0b6876005a..23dcf6485f 100644 --- a/Content.Client/RCD/RCDConstructionGhostSystem.cs +++ b/Content.Client/RCD/RCDConstructionGhostSystem.cs @@ -13,7 +13,6 @@ namespace Content.Client.RCD; public sealed class RCDConstructionGhostSystem : EntitySystem { [Dependency] private readonly IPlayerManager _playerManager = default!; - [Dependency] private readonly RCDSystem _rcdSystem = default!; [Dependency] private readonly IPlacementManager _placementManager = default!; [Dependency] private readonly IPrototypeManager _protoManager = default!; diff --git a/Content.Client/UserInterface/Systems/Actions/ActionUIController.cs b/Content.Client/UserInterface/Systems/Actions/ActionUIController.cs index a4157517ce..8d512c23ab 100644 --- a/Content.Client/UserInterface/Systems/Actions/ActionUIController.cs +++ b/Content.Client/UserInterface/Systems/Actions/ActionUIController.cs @@ -45,7 +45,6 @@ public sealed class ActionUIController : UIController, IOnStateChanged> _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) -- 2.51.2