diff options
author | Linnea Gräf <nea@nea.moe> | 2024-02-09 12:00:50 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-02-09 12:00:50 +0100 |
commit | efbef712130048e1bf39e66b15271bf663586eee (patch) | |
tree | 5260c953cdb3825128d43323a7de6557561cb7af /src/main/kotlin/moe/nea/firmament/features/chat | |
parent | 0cb6e308acc313a22f9fd796cc47301272485120 (diff) | |
download | Firmament-efbef712130048e1bf39e66b15271bf663586eee.tar.gz Firmament-efbef712130048e1bf39e66b15271bf663586eee.tar.bz2 Firmament-efbef712130048e1bf39e66b15271bf663586eee.zip |
Fix crash when rendering SkyBlock id in a string
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/chat')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/features/chat/QuickCommands.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/chat/QuickCommands.kt b/src/main/kotlin/moe/nea/firmament/features/chat/QuickCommands.kt index c4a9037..47be3c1 100644 --- a/src/main/kotlin/moe/nea/firmament/features/chat/QuickCommands.kt +++ b/src/main/kotlin/moe/nea/firmament/features/chat/QuickCommands.kt @@ -46,9 +46,9 @@ object QuickCommands : FirmamentFeature { } val joinName = getNameForFloor(what.replace(" ", "").lowercase()) if (joinName == null) { - source.sendFeedback(Text.translatable("firmament.quick-commands.join.unknown",what)) + source.sendFeedback(Text.stringifiedTranslatable("firmament.quick-commands.join.unknown", what)) } else { - source.sendFeedback(Text.translatable("firmament.quick-commands.join.success", joinName)) + source.sendFeedback(Text.stringifiedTranslatable("firmament.quick-commands.join.success", joinName)) MC.sendCommand("joininstance $joinName") } } @@ -70,7 +70,7 @@ object QuickCommands : FirmamentFeature { ) } if (l !in kuudraLevelNames.indices) { - source.sendFeedback(Text.translatable("firmament.quick-commands.join.unknown-kuudra", kuudraLevel)) + source.sendFeedback(Text.stringifiedTranslatable("firmament.quick-commands.join.unknown-kuudra", kuudraLevel)) return null } return "KUUDRA_${kuudraLevelNames[l]}" @@ -90,7 +90,7 @@ object QuickCommands : FirmamentFeature { return "CATACOMBS_ENTRANCE" } if (l !in dungeonLevelNames.indices) { - source.sendFeedback(Text.translatable("firmament.quick-commands.join.unknown-catacombs", kuudraLevel)) + source.sendFeedback(Text.stringifiedTranslatable("firmament.quick-commands.join.unknown-catacombs", kuudraLevel)) return null } return "${if (masterLevel != null) "MASTER_" else ""}CATACOMBS_FLOOR_${dungeonLevelNames[l]}" |