aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/config/IntegerHandler.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-07-28 19:52:18 +0200
committerLinnea Gräf <nea@nea.moe>2025-07-28 19:52:18 +0200
commit80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50 (patch)
treef4f361e7397d0f743429bff824664b09ab4a0748 /src/main/kotlin/gui/config/IntegerHandler.kt
parent32e1b1176b4230e3e76145c1fec7f13f705cb6a7 (diff)
downloadFirmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.tar.gz
Firmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.tar.bz2
Firmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.zip
feat: update to new moulconfig version
Diffstat (limited to 'src/main/kotlin/gui/config/IntegerHandler.kt')
-rw-r--r--src/main/kotlin/gui/config/IntegerHandler.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/kotlin/gui/config/IntegerHandler.kt b/src/main/kotlin/gui/config/IntegerHandler.kt
index 31ce90f..fd10447 100644
--- a/src/main/kotlin/gui/config/IntegerHandler.kt
+++ b/src/main/kotlin/gui/config/IntegerHandler.kt
@@ -3,6 +3,7 @@
package moe.nea.firmament.gui.config
import io.github.notenoughupdates.moulconfig.common.IMinecraft
+import io.github.notenoughupdates.moulconfig.common.text.StructuredText
import io.github.notenoughupdates.moulconfig.gui.component.RowComponent
import io.github.notenoughupdates.moulconfig.gui.component.SliderComponent
import io.github.notenoughupdates.moulconfig.gui.component.TextComponent
@@ -26,8 +27,8 @@ class IntegerHandler(val config: ManagedConfig, val min: Int, val max: Int) : Ma
guiAppender.appendLabeledRow(
opt.labelText,
RowComponent(
- TextComponent(IMinecraft.instance.defaultFontRenderer,
- { FirmFormatters.formatCommas(opt.value, 0) },
+ TextComponent(IMinecraft.INSTANCE.defaultFontRenderer,
+ { StructuredText.of(FirmFormatters.formatCommas(opt.value, 0)) },
40,
TextComponent.TextAlignment.CENTER,
true,