fix standing

This commit is contained in:
deltanedas 2025-04-06 22:50:13 +01:00
parent 95f3d6b435
commit a67069ad56
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public sealed class StandingStateSystem : EntitySystem
private void OnMobTargetCollide(Entity<StandingStateComponent> ent, ref AttemptMobTargetCollideEvent args)
{
if (!ent.Comp.Standing)
if (ent.Comp.CurrentState is StandingState.Lying) // DeltaV
{
args.Cancelled = true;
}
@ -42,7 +42,7 @@ public sealed class StandingStateSystem : EntitySystem
private void OnMobCollide(Entity<StandingStateComponent> ent, ref AttemptMobCollideEvent args)
{
if (!ent.Comp.Standing)
if (ent.Comp.CurrentState is StandingState.Lying) // DeltaV
{
args.Cancelled = true;
}