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 GitHub
parent de22bd82bb
commit 291f919e8e

View File

@@ -199,12 +199,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))