diff --git a/Content.Client/DeltaV/Shipyard/UI/ShipyardBoundUserInterface.cs b/Content.Client/DeltaV/Shipyard/UI/ShipyardBoundUserInterface.cs index a0c72b6ff7a..3fb4469e4be 100644 --- a/Content.Client/DeltaV/Shipyard/UI/ShipyardBoundUserInterface.cs +++ b/Content.Client/DeltaV/Shipyard/UI/ShipyardBoundUserInterface.cs @@ -11,9 +11,9 @@ public sealed class ShipyardConsoleBoundUserInterface : BoundUserInterface { [Dependency] private readonly IPrototypeManager _proto = default!; [Dependency] private readonly IPlayerManager _player = default!; - [Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!; private readonly AccessReaderSystem _access; + private readonly EntityWhitelistSystem _whitelist; [ViewVariables] private ShipyardConsoleMenu? _menu; @@ -21,13 +21,14 @@ public sealed class ShipyardConsoleBoundUserInterface : BoundUserInterface public ShipyardConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { _access = EntMan.System(); + _whitelist = EntMan.System(); } protected override void Open() { base.Open(); - _menu = new ShipyardConsoleMenu(Owner, _proto, EntMan, _player, _access, _whitelistSystem); + _menu = new ShipyardConsoleMenu(Owner, _proto, EntMan, _player, _access, _whitelist); _menu.OpenCentered(); _menu.OnClose += Close; _menu.OnPurchased += Purchase;