From 7e51040a8e0081854d852ceda709e91169fd82b6 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Mon, 6 Jul 2020 14:41:55 +0100 Subject: [PATCH] Fix fallback locale not loading --- .../main/java/org/geysermc/connector/utils/LanguageUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/connector/src/main/java/org/geysermc/connector/utils/LanguageUtils.java b/connector/src/main/java/org/geysermc/connector/utils/LanguageUtils.java index 6172cc9e..9dabc387 100644 --- a/connector/src/main/java/org/geysermc/connector/utils/LanguageUtils.java +++ b/connector/src/main/java/org/geysermc/connector/utils/LanguageUtils.java @@ -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