Merge pull request #557 from Shukaro/master
Fixed NPE crash with Factorization Barrels
This commit is contained in:
commit
27e8d4c877
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ public class Localization {
|
|||
* @return
|
||||
*/
|
||||
public static synchronized String get(String key) {
|
||||
if (getCurrentLanguage() == null) {
|
||||
return key;
|
||||
}
|
||||
if (!getCurrentLanguage().equals(loadedLanguage)) {
|
||||
defaultMappings.clear();
|
||||
mappings.clear();
|
||||
|
|
Loading…
Reference in a new issue