Fix: Untoggle removed actions (#39526)
* 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>
This commit is contained in:
@@ -832,7 +832,8 @@ public abstract class SharedActionsSystem : EntitySystem
|
|||||||
performer.Comp.Actions.Remove(ent.Owner);
|
performer.Comp.Actions.Remove(ent.Owner);
|
||||||
Dirty(performer, performer.Comp);
|
Dirty(performer, performer.Comp);
|
||||||
ent.Comp.AttachedEntity = null;
|
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);
|
ActionRemoved((performer, performer.Comp), ent);
|
||||||
|
|
||||||
if (ent.Comp.Temporary)
|
if (ent.Comp.Temporary)
|
||||||
|
|||||||
Reference in New Issue
Block a user