]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix action ent prediction (#37076)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 1 May 2025 00:11:35 +0000 (10:11 +1000)
committerGitHub <noreply@github.com>
Thu, 1 May 2025 00:11:35 +0000 (10:11 +1000)
Buttons don't get created in the predicted methods only on state handler.

Content.Client/Actions/ActionsSystem.cs

index 0302739816de79a7203e14fed223164821b5a973..31350a6a5da8ffa67f9c6318ee6f72797ff9ae4a 100644 (file)
@@ -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()