When printing the title of a scoreboard task, the text is centered as though it is printing the score name, not the display name.
talonos2 opened this issue ยท 4 comments
To reproduce:
Have a scoreboard task where you check for the score name "Tiny", but the display name is "A very long name". You will see that the name extends off the right side of the screen, and is not centered at all.
To fix:
It's probably as easy as changing GuiTaskScoreboard.java line 40 to int tw1 = mc.fontRenderer.getStringWidth(TextFormatting.BOLD + task.scoreDisp);
to match what is actually printed in the line beneath it.
Looks like when I changed it to use the display name instead I forgot to change the math to account for that. Thanks for the report, I'm a bit sidetracked working on another mod but I'll see about working this fix into the next set of BQ3 updates