Fixes MobStateComponent not cancelling stand attempts when mob is incapacitated

Closes #4831
This commit is contained in:
Vera Aguilera Puerto
2021-10-12 01:42:52 +02:00
parent f3993be925
commit aa42539a6b
3 changed files with 15 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ namespace Content.Shared.MobState.State
status.ShowAlert(AlertType.HumanCrit); // TODO: combine humancrit-0 and humancrit-1 into a gif and display it
}
EntitySystem.Get<StandingStateSystem>().Down(entity);
EntitySystem.Get<StandingStateSystem>().Down(entity.Uid);
if (entity.TryGetComponent(out SharedAppearanceComponent? appearance))
{