When using the minecraft:attack_range component on an item (and no matter the parameters of the component), the hit result lags behind the crosshair, as seen in MC-67665. The attached video is recorded at 120 fps, you can slow it down frame-by-frame to see the difference (holding no item vs holding an item with the component).
Steps to reproduce:
* Get an item with /give @p minecraft:stick[minecraft:attack_range={}]
* Equip the item and move your mouse quickly looking at the ground.
* Do the same without the item equipped.
* Notice (perhaps by rewatching a slowed down recording) that the selected block outline lags behind the crosshair when the item is equipped.
The cause/fix should be the same as the one for the old bug, ProjectileUtil#getHitEntitiesAlong is using Entity#getHeadLookAngle instead of Entity#getViewVector (which is what the regular picking logic uses).
Thank you for helping us improve Minecraft! We saved your files: