Crawling Bugfix: Don't drop items when falling. (#39168)

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
Princess Cheeseballs 2025-07-23 13:24:21 -07:00 committed by Vanessa
parent 49db8b9939
commit eb0f776ed1
1 changed files with 2 additions and 2 deletions

View File

@ -200,12 +200,12 @@ public abstract partial class SharedStunSystem : EntitySystem
drop = evAttempt.Drop;
}
Knockdown(entity!, time, autoStand, drop);
Knockdown(entity!, time, refresh, autoStand, drop);
return true;
}
private void Knockdown(Entity<StandingStateComponent> entity, TimeSpan? time, bool refresh, bool autoStand = true, bool drop = true)
private void Knockdown(Entity<StandingStateComponent> entity, TimeSpan? time, bool refresh, bool autoStand, bool drop)
{
// Initialize our component with the relevant data we need if we don't have it
if (EnsureComp<KnockedDownComponent>(entity, out var component))