3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-25 15:50:14 +01:00

Fix fallback locale not loading

Dieser Commit ist enthalten in:
rtm516 2020-07-06 14:41:55 +01:00
Ursprung 3cdc208174
Commit 7e51040a8e

Datei anzeigen

@ -173,6 +173,7 @@ public class LanguageUtils {
locale = formatLocale(Locale.getDefault().getLanguage() + "_" + Locale.getDefault().getCountry());
if (!isValidLanguage(locale)) { // Bedrock does not support this language
locale = "en_US";
loadGeyserLocale(locale);
}
if (GeyserConnector.getInstance() != null &&
GeyserConnector.getInstance().getConfig() != null && (GeyserConnector.getInstance().getConfig().getDefaultLocale() == null || !isValid)) { // Means we should use the system locale for sure