Fix action ent prediction (#37076)

Buttons don't get created in the predicted methods only on state handler.
This commit is contained in:
metalgearsloth
2025-05-01 10:11:35 +10:00
committed by GitHub
parent 309521f60d
commit f9aecda933

View File

@@ -202,6 +202,7 @@ namespace Content.Client.Actions
return; return;
OnActionAdded?.Invoke(actionId); OnActionAdded?.Invoke(actionId);
ActionsUpdated?.Invoke();
} }
protected override void ActionRemoved(EntityUid performer, EntityUid actionId, ActionsComponent comp, BaseActionComponent action) protected override void ActionRemoved(EntityUid performer, EntityUid actionId, ActionsComponent comp, BaseActionComponent action)
@@ -210,6 +211,7 @@ namespace Content.Client.Actions
return; return;
OnActionRemoved?.Invoke(actionId); OnActionRemoved?.Invoke(actionId);
ActionsUpdated?.Invoke();
} }
public IEnumerable<(EntityUid Id, BaseActionComponent Comp)> GetClientActions() public IEnumerable<(EntityUid Id, BaseActionComponent Comp)> GetClientActions()