diff --git a/Robust.Shared/GameObjects/Components/UserInterface/BoundUserInterface.cs b/Robust.Shared/GameObjects/Components/UserInterface/BoundUserInterface.cs index 00aa9f33a..3e09ae86c 100644 --- a/Robust.Shared/GameObjects/Components/UserInterface/BoundUserInterface.cs +++ b/Robust.Shared/GameObjects/Components/UserInterface/BoundUserInterface.cs @@ -19,7 +19,7 @@ namespace Robust.Shared.GameObjects /// /// The last received state object sent from the server. /// - protected BoundUserInterfaceState? State { get; private set; } + protected internal BoundUserInterfaceState? State { get; internal set; } protected BoundUserInterface(EntityUid owner, Enum uiKey) { diff --git a/Robust.Shared/GameObjects/Systems/SharedUserInterfaceSystem.cs b/Robust.Shared/GameObjects/Systems/SharedUserInterfaceSystem.cs index 4a588af18..acb045ee7 100644 --- a/Robust.Shared/GameObjects/Systems/SharedUserInterfaceSystem.cs +++ b/Robust.Shared/GameObjects/Systems/SharedUserInterfaceSystem.cs @@ -387,6 +387,7 @@ public abstract class SharedUserInterfaceSystem : EntitySystem if (!ent.Comp.ClientOpenInterfaces.TryGetValue(key, out var cBui)) continue; + cBui.State = buiState; cBui.UpdateState(buiState); } @@ -440,6 +441,7 @@ public abstract class SharedUserInterfaceSystem : EntitySystem if (entity.Comp.States.TryGetValue(key, out var buiState)) { + boundUserInterface.State = buiState; boundUserInterface.UpdateState(buiState); } }