]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Revert "Fix: Untoggle removed actions" (#39776)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Wed, 20 Aug 2025 16:33:14 +0000 (18:33 +0200)
committerGitHub <noreply@github.com>
Wed, 20 Aug 2025 16:33:14 +0000 (09:33 -0700)
Revert "Fix: Untoggle removed actions (#39526)"

This reverts commit e90fac14eb9d8ecd7267ea7d7381ad0f3abc8886.

Content.Shared/Actions/SharedActionsSystem.cs

index c0a32e6038b4ac2fe7c00ed2e9f06dad881ccabd..c4581cfbffb561d31c9b8c216d7f2286e0e09ac4 100644 (file)
@@ -832,8 +832,7 @@ public abstract class SharedActionsSystem : EntitySystem
         performer.Comp.Actions.Remove(ent.Owner);
         Dirty(performer, performer.Comp);
         ent.Comp.AttachedEntity = null;
-        ent.Comp.Toggled = false;
-        DirtyFields(ent, ent.Comp, null, nameof(ActionComponent.AttachedEntity), nameof(ActionComponent.Toggled));
+        DirtyField(ent, ent.Comp, nameof(ActionComponent.AttachedEntity));
         ActionRemoved((performer, performer.Comp), ent);
 
         if (ent.Comp.Temporary)