diff --git a/src/main/java/com/github/tartaricacid/touhoulittlemaid/client/resource/CustomPackLoader.java b/src/main/java/com/github/tartaricacid/touhoulittlemaid/client/resource/CustomPackLoader.java index d6ac6db5f..898eb9177 100644 --- a/src/main/java/com/github/tartaricacid/touhoulittlemaid/client/resource/CustomPackLoader.java +++ b/src/main/java/com/github/tartaricacid/touhoulittlemaid/client/resource/CustomPackLoader.java @@ -778,7 +778,7 @@ private static void readLanguageFile(ZipFile zipFile, String namespace) throws I Map newLangData = Maps.newHashMap(); String defaultLangPath = String.format("assets/%s/lang/en_us.lang", namespace); - String currentLangPath = String.format("assets/%s/lang/%s.lang", namespace, language); + String currentLangPath = String.format("assets/%s/lang/%s.lang", namespace, language.getCode()); getLanguageMap(zipFile, newLangData, defaultLangPath); getLanguageMap(zipFile, newLangData, currentLangPath); removeOldLanguageKey(newLangData); @@ -796,7 +796,7 @@ private static void readLanguageFile(Path rootPath, String namespace) throws IOE Map newLangData = Maps.newHashMap(); String defaultLangPath = String.format("assets/%s/lang/en_us.lang", namespace); - String currentLangPath = String.format("assets/%s/lang/%s.lang", namespace, language); + String currentLangPath = String.format("assets/%s/lang/%s.lang", namespace, language.getCode()); getLanguageMap(rootPath, newLangData, defaultLangPath); getLanguageMap(rootPath, newLangData, currentLangPath); removeOldLanguageKey(newLangData);