mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-02 23:53:38 +01:00
Correct backup lang loading, fixes #259
This commit is contained in:
parent
38a1166b0d
commit
b4e2fdea9e
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user