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

FIX ЛЯЖАНИЙ 6 #344

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading