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

Commit

Permalink
FIX ЛЯЖАНИЙ
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Rubinov committed Jun 26, 2024
1 parent 41b0106 commit d0c46cc
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 d0c46cc

Please sign in to comment.