mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix fallback locale not loading
This commit is contained in:
parent
3cdc208174
commit
7e51040a8e
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ public class LanguageUtils {
|
||||||
locale = formatLocale(Locale.getDefault().getLanguage() + "_" + Locale.getDefault().getCountry());
|
locale = formatLocale(Locale.getDefault().getLanguage() + "_" + Locale.getDefault().getCountry());
|
||||||
if (!isValidLanguage(locale)) { // Bedrock does not support this language
|
if (!isValidLanguage(locale)) { // Bedrock does not support this language
|
||||||
locale = "en_US";
|
locale = "en_US";
|
||||||
|
loadGeyserLocale(locale);
|
||||||
}
|
}
|
||||||
if (GeyserConnector.getInstance() != null &&
|
if (GeyserConnector.getInstance() != null &&
|
||||||
GeyserConnector.getInstance().getConfig() != null && (GeyserConnector.getInstance().getConfig().getDefaultLocale() == null || !isValid)) { // Means we should use the system locale for sure
|
GeyserConnector.getInstance().getConfig() != null && (GeyserConnector.getInstance().getConfig().getDefaultLocale() == null || !isValid)) { // Means we should use the system locale for sure
|
||||||
|
|
Loading…
Reference in a new issue