Fix never setting BoundUserInterface.State (#5111)

* Fix never setting BoundUserInterface.State

* Make setter internal
This commit is contained in:
DrSmugleaf
2024-05-07 20:51:26 -07:00
committed by GitHub
parent 1153888bd1
commit a0c1ad246f
2 changed files with 3 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ namespace Robust.Shared.GameObjects
/// <summary>
/// The last received state object sent from the server.
/// </summary>
protected BoundUserInterfaceState? State { get; private set; }
protected internal BoundUserInterfaceState? State { get; internal set; }
protected BoundUserInterface(EntityUid owner, Enum uiKey)
{

View File

@@ -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);
}
}