Skip to content

Commit

Permalink
Make IPlayerManager accessible to derived classes (#5471)
Browse files Browse the repository at this point in the history
Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
  • Loading branch information
eoineoineoin and Eoin Mcloughlin authored Sep 28, 2024
1 parent 342626a commit c9d7d44
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Robust.Shared.GameObjects
public abstract class BoundUserInterface : IDisposable
{
[Dependency] protected readonly IEntityManager EntMan = default!;
[Dependency] private readonly ISharedPlayerManager _playerManager = default!;
[Dependency] protected readonly ISharedPlayerManager PlayerManager = default!;
protected readonly SharedUserInterfaceSystem UiSystem;

public readonly Enum UiKey;
Expand Down Expand Up @@ -79,7 +79,7 @@ protected internal virtual void ReceiveMessage(BoundUserInterfaceMessage message
/// </summary>
public void Close()
{
UiSystem.CloseUi(Owner, UiKey, _playerManager.LocalEntity, predicted: true);
UiSystem.CloseUi(Owner, UiKey, PlayerManager.LocalEntity, predicted: true);
}

/// <summary>
Expand Down

0 comments on commit c9d7d44

Please sign in to comment.