mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fix indentation
This commit is contained in:
parent
2e7df8acd2
commit
86ec4e17ac
@ -107,9 +107,9 @@ public class LocalizationService extends SlimefunLocalization {
|
||||
try (BufferedReader reader = new BufferedReader(new InputStreamReader(plugin.getClass().getResourceAsStream(path)))) {
|
||||
FileConfiguration config = YamlConfiguration.loadConfiguration(reader);
|
||||
getConfig().getConfiguration().setDefaults(config);
|
||||
} catch (IOException e) {
|
||||
Slimefun.getLogger().log(Level.SEVERE, "Failed to load language file: \"" + path + "\"", e);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
Slimefun.getLogger().log(Level.SEVERE, "Failed to load language file: \"" + path + "\"", e);
|
||||
}
|
||||
|
||||
save();
|
||||
}
|
||||
@ -125,10 +125,10 @@ public class LocalizationService extends SlimefunLocalization {
|
||||
try (BufferedReader reader = new BufferedReader(new InputStreamReader(plugin.getClass().getResourceAsStream(path)))) {
|
||||
cfg = YamlConfiguration.loadConfiguration(reader);
|
||||
cfg.setDefaults(getConfig().getConfiguration());
|
||||
} catch (IOException e) {
|
||||
Slimefun.getLogger().log(Level.SEVERE, "Failed to load language file into memory: \"" + path + "\"", e);
|
||||
} catch (IOException e) {
|
||||
Slimefun.getLogger().log(Level.SEVERE, "Failed to load language file into memory: \"" + path + "\"", e);
|
||||
cfg = getConfig().getConfiguration();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
languages.put(id, new Language(id, cfg, hash));
|
||||
|
Loading…
Reference in New Issue
Block a user