The bug
Boss bars can store values greater than their maximum.
How to reproduce
Create a boss bar
Run
/bossbar set <your_bossbar> max 1Run
/bossbar set <your_bossbar> value 1000Run
/bossbar get <your_bossbar> value
→ ❌ The value is 1000, even though the maximum is only 1
What should happen when you decrease
maxafterwards? Shouldvalueautomatically be set tomaxthen as well?