Hotfix for Body Bags (#9155)

* Oops

* Requested changes

* Renamed

* rename

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Júlio César Ueti
2022-06-27 02:37:29 -03:00
committed by GitHub
parent e9d6156d0c
commit a265cd8935
3 changed files with 17 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ public abstract class SharedFoldableSystem : EntitySystem
public virtual void SetFolded(FoldableComponent component, bool folded)
{
component.IsFolded = folded;
component.Dirty();
Dirty(component);
if (TryComp(component.Owner, out AppearanceComponent? appearance))
appearance.SetData(FoldKey, folded);