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:
committed by
GitHub
parent
de22bd82bb
commit
291f919e8e
@@ -199,12 +199,12 @@ public abstract partial class SharedStunSystem : EntitySystem
|
|||||||
drop = evAttempt.Drop;
|
drop = evAttempt.Drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
Knockdown(entity!, time, autoStand, drop);
|
Knockdown(entity!, time, refresh, autoStand, drop);
|
||||||
|
|
||||||
return true;
|
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
|
// Initialize our component with the relevant data we need if we don't have it
|
||||||
if (EnsureComp<KnockedDownComponent>(entity, out var component))
|
if (EnsureComp<KnockedDownComponent>(entity, out var component))
|
||||||
|
|||||||
Reference in New Issue
Block a user