Skip to content

Commit

Permalink
fix: use lowercase language name for map server translator
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Sep 23, 2024
1 parent 7512a02 commit 714c366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MapServerTranslator : ServerTranslator {

@Synchronized
override fun getLanguage(languageName: String): Map<String, String> =
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")
}
}
2 changes: 1 addition & 1 deletion versions/1.20.4-forge/gradle.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 714c366

Please sign in to comment.