The bug may have been reported, but I didn't find it.
When you switch an item and use it quickly (such as using it to attack or right-click), the server will still execute the same item as before the switch.
Reproduce:
1、Place one wooden sword with fire aspect and one diamond sword without enchantment in two hotbars
2、Start with the diamond sword
3、Make sure the charging is 100%
4、Switch to the wooden sword and attack immediately
After these, the mob will take fire effect from the wooden sword. But the charging hasn't been reset to 0 before attacking, and the basic damage is still from the diamond sword.
Linked issues
duplicates 1
Comments 3
@BugTracker I think that ticket doesn't fully describe the bug. If there isn't any ticket fully describes, I will modify this ticket and add some details.
I tested again and found MC-28289 can describe this issue.
I originally thought that the bug on the server that caused the item error was also due to this. But vanilla didn't seem to have the problem with that server
Would MC-28289 describe you're issue?