Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-25 15:50:14 +01:00
Don't cause a recursion error if Geyser can't find the locale
Dieser Commit ist enthalten in:
Ursprung
6cdf1eaf43
Commit
ca4d827d28
@ -75,8 +75,8 @@ public class LanguageUtils {
|
|||||||
// Insert the locale into the mappings
|
// Insert the locale into the mappings
|
||||||
LOCALE_MAPPINGS.put(locale, localeProp);
|
LOCALE_MAPPINGS.put(locale, localeProp);
|
||||||
} else {
|
} else {
|
||||||
if (!locale.toLowerCase().equals(getDefaultLocale().toLowerCase())) { // The default locale was invalid fallback to en_us
|
if (GeyserConnector.getInstance() != null && GeyserConnector.getInstance().getLogger() != null) {
|
||||||
GeyserConnector.getInstance().getLogger().warning(getLocaleStringLog("geyser.language.missing_file", locale));
|
GeyserConnector.getInstance().getLogger().warning("Missing locale: " + locale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren