Stop sprinting after a spear stab with knockback

Player.causeExtraKnockback stops the attacker's sprint, as the melee path already does.
This commit is contained in:
Kacpherek
2026-10-28 06:57:48 +01:00
parent 330314327a
commit 4a1c5fc54c
+2
View File
@@ -247,6 +247,8 @@ impl Game<'_> {
self.mobs[index].knockback(0.4, xd, zd);
let (strength, _) = self.extra_knockback(&kind, 0.0);
self.mobs[index].knockback(f64::from(strength), xd, zd);
// ...and the attacker stops sprinting.
self.stop_sprint_after_extra_knockback();
}
let dismounted = dismounts && self.mobs[index].extra.mount.is_some();
if dismounted {