]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix SharedActionSystem spamming errors (#38358)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Tue, 17 Jun 2025 05:18:13 +0000 (07:18 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Jun 2025 05:18:13 +0000 (15:18 +1000)
Content.Shared/Actions/SharedActionsSystem.cs

index 583bd177dcebc40927b5768aa8df14525432350e..a676f570b01d7794da9258fab3029b057d48dade 100644 (file)
@@ -108,7 +108,7 @@ public abstract class SharedActionsSystem : EntitySystem
     /// </summary>
     public Entity<ActionComponent>? GetAction(Entity<ActionComponent?>? action, bool logError = true)
     {
-        if (action is not {} ent || TerminatingOrDeleted(ent))
+        if (action is not {} ent || Deleted(ent))
             return null;
 
         if (!_actionQuery.Resolve(ent, ref ent.Comp, logError))