This issue is present at least since 1.16 When using an item (snowballs) while holding a key, 200ms delay is applied, witch is fine and is how it is on java, however, same delay applies on manual input (witch is not how it is on java) and after attack, meaning if player hit something, switched (if didnt have) to any "usable" item and clicked to use it - action will be canceled. This is quite an issue for competitive scene. Steps to reproduce:
Be in creative
Spawn iron golem
Get snowballs
Press both mouse keys (attack and build) while looking at the golem (preferably attack should be first input)
Observe, that snowball wasnt thrown (but should've)
Optionally game could be slowed down to observe this effect better
This issue is present at least since 1.16
When using an item (snowballs) while holding a key, 200ms delay is applied, witch is fine and is how it is on java, however, same delay applies on manual input (witch is not how it is on java) and after attack, meaning if player hit something, switched (if didnt have) to any "usable" item and clicked to use it - action will be canceled. This is quite an issue for competitive scene.
Steps to reproduce:
Be in creative
Spawn iron golem
Get snowballs
Press both mouse keys (attack and build) while looking at the golem (preferably attack should be first input)
Observe, that snowball wasnt thrown (but should've)
Optionally game could be slowed down to observe this effect better