diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-11-17 19:55:02 +0100 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-11-17 19:55:02 +0100 |
| commit | c93a04a001b0f66b2724d46b04b6d1ed49a08d07 (patch) | |
| tree | 5869ca70acc482ef0362f27785c3d3f1cbb9ffae /src/main/kotlin/keybindings/SavedKeyBinding.kt | |
| parent | af9893b59407c69d31ebd2ed513f0396ab4d2dc9 (diff) | |
| download | Firmament-c93a04a001b0f66b2724d46b04b6d1ed49a08d07.tar.gz Firmament-c93a04a001b0f66b2724d46b04b6d1ed49a08d07.tar.bz2 Firmament-c93a04a001b0f66b2724d46b04b6d1ed49a08d07.zip | |
refactor: port to mojmaps
Diffstat (limited to 'src/main/kotlin/keybindings/SavedKeyBinding.kt')
| -rw-r--r-- | src/main/kotlin/keybindings/SavedKeyBinding.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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(" + ") |
