From b4e2fdea9e634b1559fb84e7b8f6381a33e76f91 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Sat, 27 Jan 2018 22:18:57 -0500 Subject: [PATCH] Correct backup lang loading, fixes #259 --- src/main/java/me/blackvein/quests/util/Lang.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/util/Lang.java b/src/main/java/me/blackvein/quests/util/Lang.java index 7c3256025..8951fe246 100644 --- a/src/main/java/me/blackvein/quests/util/Lang.java +++ b/src/main/java/me/blackvein/quests/util/Lang.java @@ -110,7 +110,7 @@ public class Lang { } else { plugin.getLogger().severe("Failed loading lang files for " + iso + " because they were not found. Using default en-US"); iso = "en-US"; - config.setDefaults(YamlConfiguration.loadConfiguration(new InputStreamReader(plugin.getResource("strings.yml"), "UTF-8"))); //TODO better than loadYamlUTF*() ? + config = YamlConfiguration.loadConfiguration(new InputStreamReader(plugin.getResource("strings.yml"), "UTF-8")); //TODO better than loadYamlUTF*() ? for (String key : config.getKeys(false)) { allStrings.put(key, config.getString(key)); }