mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-21 18:15:32 +01:00
Debug for #2063
This commit is contained in:
parent
aa4d7b6d3d
commit
20bbd3d6e8
@ -225,8 +225,17 @@ public class Lang {
|
||||
allStrings.put(key, config.getString(key));
|
||||
}
|
||||
}
|
||||
final FileConfiguration config= YamlConfiguration
|
||||
.loadConfiguration(new InputStreamReader(new FileInputStream(langFile), StandardCharsets.UTF_8));
|
||||
FileConfiguration config = null;
|
||||
try {
|
||||
config = YamlConfiguration
|
||||
.loadConfiguration(new InputStreamReader(new FileInputStream(langFile), StandardCharsets.UTF_8));
|
||||
} catch (Exception e) {
|
||||
plugin.getPluginLogger().severe("Unable to load config for language " + iso);
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (config == null) {
|
||||
return;
|
||||
}
|
||||
FileConfiguration config_new = null;
|
||||
if (exists_new) {
|
||||
config_new = YamlConfiguration.loadConfiguration(new InputStreamReader(
|
||||
|
Loading…
Reference in New Issue
Block a user