From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 1 May 2025 00:11:35 +0000 (+1000) Subject: Fix action ent prediction (#37076) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f9aecda933c51bd8deea7dc25883bd290a0ff64b;p=space-station-14.git Fix action ent prediction (#37076) Buttons don't get created in the predicted methods only on state handler. --- diff --git a/Content.Client/Actions/ActionsSystem.cs b/Content.Client/Actions/ActionsSystem.cs index 0302739816..31350a6a5d 100644 --- a/Content.Client/Actions/ActionsSystem.cs +++ b/Content.Client/Actions/ActionsSystem.cs @@ -202,6 +202,7 @@ namespace Content.Client.Actions return; OnActionAdded?.Invoke(actionId); + ActionsUpdated?.Invoke(); } protected override void ActionRemoved(EntityUid performer, EntityUid actionId, ActionsComponent comp, BaseActionComponent action) @@ -210,6 +211,7 @@ namespace Content.Client.Actions return; OnActionRemoved?.Invoke(actionId); + ActionsUpdated?.Invoke(); } public IEnumerable<(EntityUid Id, BaseActionComponent Comp)> GetClientActions()