The bug
When creating a boss bar and setting its color the color of the text changes too as seen in
[media]. But when you relog the text turns white as seen in
[media].
How to reproduce
Use the following commands to set up the bossbar properly:
/bossbar add test "Test" /bossbar set test value 100 /bossbar set test color red /bossbar set test players @s
→ ✔ The text above the bossbar will appear red now
Exit and reenter the world
→ ❌ The text will now be white
Linked issues
is duplicated by 3
Attachments
Comments 4
It appears that the change of text color is unintended and happens as a temporary side effect of manipulating the boss bar using commands.
The culprit seems to be
net.minecraft.server.CustomServerBossInfo.getFormattedName()
where the boss bar's name isn't copied before it's manipulated and thus gets mutated (MCP names).
Still affects 1.13-pre6!