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:
parent
49db8b9939
commit
eb0f776ed1
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue