Get default key as backup, see #1983

This commit is contained in:
PikaMug 2022-07-06 02:09:38 -04:00
parent 03136d8945
commit b634348cd7

View File

@ -100,6 +100,9 @@ public class Lang {
return defaultLang.containsKey(key) ? LangToken.convertString(player, defaultLang.get(key)) : "NULL";
}
}
if (otherLang.get(locale).get(key) == null) {
return defaultLang.get(key);
}
return LangToken.convertString(otherLang.get(locale).get(key));
}