mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Minor fix
This commit is contained in:
parent
2dfb9ce92a
commit
2e7df8acd2
@ -124,6 +124,7 @@ public class LocalizationService extends SlimefunLocalization {
|
||||
String path = "/languages/messages_" + id + ".yml";
|
||||
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);
|
||||
cfg = getConfig().getConfiguration();
|
||||
|
Loading…
Reference in New Issue
Block a user