mojira.dev
MC-311799

Sprint-attacking another player no longer slows down the attacker

Since 26.3 Pre-Release 2, landing a full-strength attack on another player while sprinting no longer slows the attacker down or cancels their sprint. The behavior changed with the fix for MC-211708 ("Client spawns crit particles when attacking another player that cannot be harmed"). That fix stopped the client from predicting hits on other players, but the attacker's slowdown was part of the same prediction, so it was removed for valid hits as well, and nothing server-side replaces it.

Steps to reproduce

  1. Start a dedicated server and join with two clients. Both players are in survival with PvP enabled

  2. Player A attacks Player B while sprinting

  3. Player A does not slowdown from attacking

Expected

Player A is applied a slowdown via causeExtraKnockback , multiplying their current horizontal movement by 0.6

Actual Result

Player A is not slowed down and their horizontal motion is maintained

Linked issues

Comments 1

Can confirm, this is a critical issue. Note that this is not related to multiplayer, even in singleplayer when attacking mobs, dealing a sprint-knockback attack no longer cancels your sprint.

Walker

bl4ckscor3

Plausible

Platform EC

Very Important

Networking, Player

26.3 Release Candidate 1

26.3 Release Candidate 3

Retrieved