mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Check equatable on client-predicted BUI states (#5671)
This commit is contained in:
@@ -755,8 +755,11 @@ public abstract class SharedUserInterfaceSystem : EntitySystem
|
||||
// Predict the change on client
|
||||
if (state != null && _netManager.IsClient && entity.Comp.ClientOpenInterfaces.TryGetValue(key, out var bui))
|
||||
{
|
||||
bui.UpdateState(state);
|
||||
bui.Update();
|
||||
if (bui.State?.Equals(state) != true)
|
||||
{
|
||||
bui.UpdateState(state);
|
||||
bui.Update();
|
||||
}
|
||||
}
|
||||
|
||||
DirtyField(entity, nameof(UserInterfaceComponent.States));
|
||||
|
||||
Reference in New Issue
Block a user