From 7b6b3916c3a6143091626c38f56ed3c50b7188fa Mon Sep 17 00:00:00 2001 From: Null <56081759+NullWanderer@users.noreply.github.com> Date: Wed, 12 Jun 2024 18:46:40 +0200 Subject: [PATCH] Fix shipyard UI refusing to open (#1364) Fix shipyard ui --- .../DeltaV/Shipyard/UI/ShipyardBoundUserInterface.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;