mojira.dev
MC-311352

Spear thrust animation persists on other items when switching hotbar slots during left-click attack

Steps to Reproduce:

  1. Equip a spear in the main hand.

  2. Left-click to perform the spear’s thrust animation.

  3. While the thrust animation is playing, immediately switch to a different item in the hotbar.

  4. Observe the newly selected item’s animation.

Observed Result:
The switched-to item plays the spear’s thrust animation instead of its own default attack animation. The animation may loop or freeze briefly until another action is performed.

Expected Result:
Switching items during an attack should cancel the spear’s thrust animation and play the correct default animation for the newly selected item, with no residual spear animation carrying over.

Linked issues

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media]

重复了,我也汇报了此bug

Hi!
Thank you for your report! 

We've already resolved this issue at MC-310695, so I will close and link this ticket as a Duplicate.

Quick Links: 
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

CutieCreeper

(Unassigned)

Unconfirmed

26.3 Snapshot 9

Retrieved