Skip to content

Commit

Permalink
Fix shipyard UI refusing to open (DeltaV-Station#1364)
Browse files Browse the repository at this point in the history
Fix shipyard ui
  • Loading branch information
NullWanderer authored Jun 12, 2024
1 parent a1b2c1b commit 7b6b391
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@ 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;

public ShipyardConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
{
_access = EntMan.System<AccessReaderSystem>();
_whitelist = EntMan.System<EntityWhitelistSystem>();
}

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;
Expand Down

0 comments on commit 7b6b391

Please sign in to comment.