From 714c366f62194489470ea3ae71396d32dff3c3c7 Mon Sep 17 00:00:00 2001 From: Apehum Date: Mon, 23 Sep 2024 14:24:54 +0800 Subject: [PATCH] fix: use lowercase language name for map server translator --- .../main/kotlin/su/plo/slib/language/MapServerTranslator.kt | 4 ++-- versions/1.20.4-forge/gradle.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/kotlin/su/plo/slib/language/MapServerTranslator.kt b/common/src/main/kotlin/su/plo/slib/language/MapServerTranslator.kt index c824cd6..f22be75 100644 --- a/common/src/main/kotlin/su/plo/slib/language/MapServerTranslator.kt +++ b/common/src/main/kotlin/su/plo/slib/language/MapServerTranslator.kt @@ -25,7 +25,7 @@ class MapServerTranslator : ServerTranslator { @Synchronized override fun getLanguage(languageName: String): Map = - languages.getOrElse(languageName) { - languages[defaultLanguage] ?: throw IllegalStateException("Default language doesn't exist") + languages.getOrElse(languageName.lowercase()) { + languages[defaultLanguage.lowercase()] ?: throw IllegalStateException("Default language doesn't exist") } } diff --git a/versions/1.20.4-forge/gradle.properties b/versions/1.20.4-forge/gradle.properties index b741704..2477701 100644 --- a/versions/1.20.4-forge/gradle.properties +++ b/versions/1.20.4-forge/gradle.properties @@ -1 +1 @@ -essential.defaults.loom.forge=net.minecraftforge:forge:1.20.4-49.0.26 +essential.defaults.loom.forge=net.minecraftforge:forge:1.20.4-49.1.4 \ No newline at end of file