]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix: Untoggle removed actions (#39526)
authorWinkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com>
Tue, 19 Aug 2025 22:30:55 +0000 (01:30 +0300)
committerGitHub <noreply@github.com>
Tue, 19 Aug 2025 22:30:55 +0000 (15:30 -0700)
* Fix

* Update Content.Shared/Actions/SharedActionsSystem.cs

Co-authored-by: LaCumbiaDelCoronavirus <90893484+LaCumbiaDelCoronavirus@users.noreply.github.com>
---------

Co-authored-by: LaCumbiaDelCoronavirus <90893484+LaCumbiaDelCoronavirus@users.noreply.github.com>
Content.Shared/Actions/SharedActionsSystem.cs

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