Items damaged more than their max damage display a durability of 0 instead of actual value
The bug
If an item's damage exceeds (rather than equals) its maximum durability, the durability (F3+H) will display as 0, even though it's a negative number.
This did not happen in 1.20.4.
How to reproduce
- Enable advanced tooltips
/give @s golden_pickaxe[minecraft:damage=40]
Expected results
The durability would read as -8.
Actual results
The durability reads as 0.