mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 02:25:42 +01:00
Get default key as backup, see #1983
This commit is contained in:
parent
03136d8945
commit
b634348cd7
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user