mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Fix NPE when saving config before the config is loaded - thanks to Wolvereness for the pull request
This commit is contained in:
parent
5743c3bccf
commit
76c23ee588
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ public abstract class JavaPlugin implements Plugin {
|
|||
|
||||
public void saveConfig() {
|
||||
try {
|
||||
newConfig.save(configFile);
|
||||
getConfig().save(configFile);
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, "Could not save config to " + configFile, ex);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue