This commit is contained in:
Spatison
2024-07-10 21:01:39 +03:00
committed by GitHub
parent fa00ea8ae1
commit 80ca59e026
2 changed files with 20 additions and 7 deletions

View File

@@ -115,6 +115,12 @@ public abstract class SharedStunSystem : EntitySystem
if (!TryComp(uid, out StandingStateComponent? standing) || !(!standing.CanLieDown || standing.AutoGetUp)) // WD EDIT
return;
if (standing.AutoGetUp) // WD EDIT
{
_standingState.TryStandUp(uid, standing);
return;
}
_standingState.Stand(uid, standing);
// WD EDIT END
}