From c93a04a001b0f66b2724d46b04b6d1ed49a08d07 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 17 Nov 2025 19:55:02 +0100 Subject: refactor: port to mojmaps --- src/main/kotlin/keybindings/SavedKeyBinding.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/keybindings/SavedKeyBinding.kt') diff --git a/src/main/kotlin/keybindings/SavedKeyBinding.kt b/src/main/kotlin/keybindings/SavedKeyBinding.kt index 8f08e5f..91d88ca 100644 --- a/src/main/kotlin/keybindings/SavedKeyBinding.kt +++ b/src/main/kotlin/keybindings/SavedKeyBinding.kt @@ -1,7 +1,7 @@ package moe.nea.firmament.keybindings import kotlinx.serialization.Serializable -import net.minecraft.text.Text +import net.minecraft.network.chat.Component @Serializable data class SavedKeyBinding( @@ -30,8 +30,8 @@ data class SavedKeyBinding( return format().string } - fun format(): Text { - val stroke = Text.empty() + fun format(): Component { + val stroke = Component.empty() if (!modifiers.isEmpty()) { stroke.append(modifiers.format()) stroke.append(" + ") -- cgit