Remove early return from SetFolded (#14697)
This commit is contained in:
@@ -45,9 +45,6 @@ public abstract class SharedFoldableSystem : EntitySystem
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual void SetFolded(EntityUid uid, FoldableComponent component, bool folded)
|
public virtual void SetFolded(EntityUid uid, FoldableComponent component, bool folded)
|
||||||
{
|
{
|
||||||
if (component.IsFolded == folded)
|
|
||||||
return;
|
|
||||||
|
|
||||||
component.IsFolded = folded;
|
component.IsFolded = folded;
|
||||||
Dirty(component);
|
Dirty(component);
|
||||||
Appearance.SetData(uid, FoldedVisuals.State, folded);
|
Appearance.SetData(uid, FoldedVisuals.State, folded);
|
||||||
|
|||||||
Reference in New Issue
Block a user