From ca937a671c4671b298c78c0d1eb2e4bbb6fc08c6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 28 Aug 2023 21:31:23 +0100 Subject: [PATCH] Fix alignment of the mana subtitle in other translations --- .../client/gui/spellbook/SpellbookProfilePageContent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java index cd424205..06629df5 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java +++ b/src/main/java/com/minelittlepony/unicopia/client/gui/spellbook/SpellbookProfilePageContent.java @@ -141,7 +141,8 @@ public class SpellbookProfilePageContent implements SpellbookChapterList.Content String manaString = (int)reserves.getMana().get() + "/" + (int)reserves.getMana().getMax(); y = 15; - context.drawText(font, Text.translatable("gui.unicopia.spellbook.page.mana"), -font.getWidth("Mana") / 2, y, SpellbookScreen.TITLE_COLOR, false); + Text manaLabel = Text.translatable("gui.unicopia.spellbook.page.mana"); + context.drawText(font, manaLabel, -font.getWidth(manaLabel) / 2, y, SpellbookScreen.TITLE_COLOR, false); context.drawText(font, manaString, -font.getWidth(manaString) / 2, y += font.fontHeight, SpellbookScreen.TITLE_COLOR, false); Text levelString = Text.literal(Romanizer.romanize(currentLevel + 1));