diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-07-28 19:52:18 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-07-28 19:52:18 +0200 |
| commit | 80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50 (patch) | |
| tree | f4f361e7397d0f743429bff824664b09ab4a0748 /src/main/kotlin/gui/config/KeyBindingStateManager.kt | |
| parent | 32e1b1176b4230e3e76145c1fec7f13f705cb6a7 (diff) | |
| download | Firmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.tar.gz Firmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.tar.bz2 Firmament-80d97bb0de46b1b0cefd8a5bd1ba22105ee08a50.zip | |
feat: update to new moulconfig version
Diffstat (limited to 'src/main/kotlin/gui/config/KeyBindingStateManager.kt')
| -rw-r--r-- | src/main/kotlin/gui/config/KeyBindingStateManager.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/kotlin/gui/config/KeyBindingStateManager.kt b/src/main/kotlin/gui/config/KeyBindingStateManager.kt index 1528ac4..49a4465 100644 --- a/src/main/kotlin/gui/config/KeyBindingStateManager.kt +++ b/src/main/kotlin/gui/config/KeyBindingStateManager.kt @@ -6,6 +6,7 @@ import io.github.notenoughupdates.moulconfig.deps.libninepatch.NinePatch import io.github.notenoughupdates.moulconfig.gui.GuiImmediateContext import io.github.notenoughupdates.moulconfig.gui.KeyboardEvent import io.github.notenoughupdates.moulconfig.gui.component.TextComponent +import io.github.notenoughupdates.moulconfig.platform.MoulConfigPlatform import org.lwjgl.glfw.GLFW import net.minecraft.text.Text import net.minecraft.util.Formatting @@ -116,8 +117,8 @@ class KeyBindingStateManager( fun createButton(): FirmButtonComponent { return object : FirmButtonComponent( TextComponent( - IMinecraft.instance.defaultFontRenderer, - { this@KeyBindingStateManager.label.string }, + IMinecraft.INSTANCE.defaultFontRenderer, + { MoulConfigPlatform.wrap(this@KeyBindingStateManager.label) }, 130, TextComponent.TextAlignment.LEFT, false, |
