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

Commit

Permalink
FAST FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Rubinov committed Jun 25, 2024
1 parent 40a25c8 commit 41b0106
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Content.Shared/Standing/StandingStateSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,17 @@ private void OnComponentInit(EntityUid uid, StandingStateComponent component, Co
/// </summary>
private void OnLieDownAction(EntityUid uid, StandingStateComponent component, LieDownActionEvent args)
{
_lieDown.TryLieDown(uid);
if (!_buckle.IsBuckled(uid))
_lieDown.TryLieDown(uid);
}

/// <summary>
/// Event that being risen on stand up attempt.
/// </summary>
private void OnStandUpAction(EntityUid uid, StandingStateComponent? component, StandUpActionEvent args)
{
_lieDown.TryStandUp(uid);
if (!_buckle.IsBuckled(uid))
_lieDown.TryStandUp(uid);
}

private bool DelayCheck(EntityUid uid, StandingStateComponent? standingState = null)
Expand Down

0 comments on commit 41b0106

Please sign in to comment.