Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #344 from user424242420/lie-down-2
Browse files Browse the repository at this point in the history
FIX ЛЯЖАНИЙ 6
  • Loading branch information
Vonsant authored Jun 26, 2024
2 parents 8d91b4f + d0c46cc commit 05ff104
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Content.Shared/Standing/StandingStateSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public bool Down(EntityUid uid, bool playSound = true, bool dropHeldItems = true
if (msg.Cancelled)
return false;

EnsureComp<LyingDownComponent>(uid);
Dirty(uid, standingState);
RaiseLocalEvent(uid, new DownedEvent(), false);

Expand Down Expand Up @@ -179,6 +180,7 @@ public bool Stand(EntityUid uid,
return false;
}

RemCompDeferred<LyingDownComponent>(uid);
Dirty(uid, standingState);
RaiseLocalEvent(uid, new StoodEvent(), false);

Expand Down

0 comments on commit 05ff104

Please sign in to comment.