Fix action ent prediction (#37076)
Buttons don't get created in the predicted methods only on state handler.
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user