The bug
Holding right-click prioritizes continuing to use off-hand item over main-hand item.
How to reproduce
Put a shield in off-hand
Create a large area of farmland, and place a stack of seeds in main hand
Try to plant the whole area, while right-clicking and walking around
What happens: The first block of farmland you target gets planted, then you start blocking, and you don't stop blocking until you release the mouse button.
What I expected: blocking would stop once I was targeting a farmland block with nothing planted in it, and I would plant a seed in it.
Related issues
is duplicated by
relates to
testing discovered
Comments


In my opinion, the correct behaviour should be as follows:
Right click to plant the first seed in the farmland area, but the shield shouldn't start blocking unless the player releases & re-presses RMB. Instead other areas of farmland are planted as you move around whilst continuing to hold RMB. An action with the off hand really shouldn't start as a result of holding down RMB too long for an action that completes with the main hand. See MC-97176, for an example of the same effect with food in main hand and torch in off hand.

Seems to be fixed as of 1.16-pre4.

The placing blocks (including seeds) aspect seems to be fixed as of 1.15.2, probably earlier. There do seem to be other cases that are still affected (e.g. tilling with a hoe with a shield in the offhand), though. But that can go into a separate report. I'll figure out what version this was actually fixed in.

Fixed 17w47b (confirmed present in 17w47a).
Confirmed for 16w06a, the same is for making a farm land out of dirt.