1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Minor fix

This commit is contained in:
TheBusyBiscuit 2020-01-11 20:17:12 +01:00
parent 2dfb9ce92a
commit 2e7df8acd2

View File

@ -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();