The bug
When you punch the air with an item in the main hand and a cast fishing rod in the off-hand, the main hand (item) makes a punch animation as expected, but the off-hand (item) shouldn't move. As the rod itself remains still as expected, the cast fishing line of the rod in the off-hand moves strangely up and down the length of the rod.
It appears as if the fishing line thinks its rod is being used to punch, but it isn't as it is in the off-hand. The fishing line makes a similar movement to as if the rod were indeed in the punching hand. In the attached image you can see the the fishing line has moved down the rod while my main hand is punching something (and is at this point because of that just outside my view).
How to reproduce:
Put any fishing rod in the off-hand
Right-click to cast the line
Left-click to punch in the air
❌ notice how the off-hand and the rod in it don't animate, but its fishing line does
Code analysis
Code analysis by @unknown can be found in this comment.
Linked issues
is duplicated by 16
Attachments
Comments 13


Replaced screenshot with new one without resource pack, my apologies. Screenshot taken in 1.12.2.

Still present in 1.13.2

Confirmed for 19w08a and 19w08b.
In 1.16 Release Candidate-1 It now moves up no matter which hand is it in.

Affects 1.18. Right-clicks that cause a hand action are also effected.

Affects 1.18.1
Can confirm in 1.18.2.
Can confirm in 1.19.
Can confirm in 1.19.2.
Confirmde for 17w17a