Scoreboard display name with keybind text component behave weirdly after changing said keybind
Scoreboards display name that contains "keybind" JSON text component doesn't update after keybind is changed, and it appear offcentered if new keybinds name has different length than the old one
Name only updates after:
reentering world, changing name with command, reloading resource packs
To reproduce:
- /scoreboard objectives add scores health "Name"
- /scoreboard objectives setdisplay sidebar scores
- /scoreboard objectives modify scores displayname {"keybind":"key.swapOffhand"}
- Change "Swap Item With Offhand" keybind to a different one that name is longer/shorter
- Observe scoreboard
2024-05-26, 03:56 PM
2024-09-01, 05:34 PM
1
2
-