Fix LoadingErrorScreen inner headers are not centered. Closes #9687

This commit is contained in:
LexManos committed 2023-11-28 20:08:59 -08:00
1 parent f5fa2f2a57
commit 4a8adf5465
1 file changed
+1 -1
@@ -149,7 +149,7 @@ public class LoadingErrorScreen extends ErrorScreen {
for (FormattedCharSequence string : strings)
{
if (center)
guiGraphics.drawString(font, string, left + (width) - font.width(string) / 2F, (float) y, 0xFFFFFF, false);
guiGraphics.drawString(font, string, left + (width / 2F) - font.width(string) / 2F, (float) y, 0xFFFFFF, false);
else
guiGraphics.drawString(font, string, left + 5, y, 0xFFFFFF, false);
y += font.lineHeight;