]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove early return from SetFolded (#14697)
authorRobert V <keywogger@gmail.com>
Mon, 20 Mar 2023 00:46:37 +0000 (17:46 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Mar 2023 00:46:37 +0000 (17:46 -0700)
Content.Shared/Foldable/SharedFoldableSystem.cs

index 52cca6ee7ab021fdc089c36d0a219018a58fd62a..dce19d6e826d865d633ea3db614f861bcdb9c288 100644 (file)
@@ -45,9 +45,6 @@ public abstract class SharedFoldableSystem : EntitySystem
     /// </summary>
     public virtual void SetFolded(EntityUid uid, FoldableComponent component, bool folded)
     {
-        if (component.IsFolded == folded)
-            return;
-
         component.IsFolded = folded;
         Dirty(component);
         Appearance.SetData(uid, FoldedVisuals.State, folded);