Fix NPE when loading lang.yml from jar
This commit is contained in:
@@ -69,6 +69,7 @@ public class Main extends JavaPlugin {
|
|||||||
if (defConfigStream != null) {
|
if (defConfigStream != null) {
|
||||||
YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream);
|
YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream);
|
||||||
defConfig.save(lang);
|
defConfig.save(lang);
|
||||||
|
Lang.setFile(defConfig);
|
||||||
return defConfig;
|
return defConfig;
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user