From 760f4bddcfc7cd47b5882c3cf345044eb434f469 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 9 Aug 2022 15:42:05 -0700 Subject: [PATCH] Fix extra knockback sprint bug --- examples/combat.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/combat.rs b/examples/combat.rs index a498e0c..61b501f 100644 --- a/examples/combat.rs +++ b/examples/combat.rs @@ -212,6 +212,9 @@ impl Config for Game { Some(ClientEvent::StartSprinting) => { client.state.extra_knockback = true; } + Some(ClientEvent::StopSprinting) => { + client.state.extra_knockback = false; + } Some(ClientEvent::InteractWithEntity { id, kind: InteractWithEntityKind::Attack,