From f0f6a27453d44a18e1c655880dca0baf2de03c9a Mon Sep 17 00:00:00 2001 From: IMS212 Date: Mon, 5 Feb 2024 07:47:51 -0800 Subject: [PATCH] Fix suffix application on translations --- .../coderbot/iris/gui/element/widget/StringElementWidget.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/coderbot/iris/gui/element/widget/StringElementWidget.java b/src/main/java/net/coderbot/iris/gui/element/widget/StringElementWidget.java index 1dd36f9dc2..eb55b91072 100644 --- a/src/main/java/net/coderbot/iris/gui/element/widget/StringElementWidget.java +++ b/src/main/java/net/coderbot/iris/gui/element/widget/StringElementWidget.java @@ -68,8 +68,8 @@ private void increment(int amount) { @Override protected Component createValueLabel() { return prefix.copy().append(GuiUtil.translateOrDefault( - new TextComponent(getValue()), - "value." + this.option.getName() + "." + getValue())).append(suffix).withStyle(style -> style.withColor(TextColor.fromRgb(0x6688ff))); + new TextComponent(getValue()).append(suffix), + "value." + this.option.getName() + "." + getValue())).withStyle(style -> style.withColor(TextColor.fromRgb(0x6688ff))); } @Override