Fixes some comments
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
This commit is contained in:
@@ -66,10 +66,8 @@ public final class ConfigHelper {
|
||||
File dataFolder = plugin.getDataFolder();
|
||||
File config = new File(dataFolder, CONFIG_FILE);
|
||||
|
||||
// Load the old configuration as a normal configuration to prevent old comments from being retained
|
||||
FileConfiguration oldConfiguration = plugin.getConfig();
|
||||
|
||||
//Save the old config just in case something goes wrong
|
||||
FileConfiguration oldConfiguration = plugin.getConfig();
|
||||
try {
|
||||
oldConfiguration.save(new File(dataFolder, BACKUP_CONFIG_FILE));
|
||||
} catch (IOException exception) {
|
||||
@@ -77,6 +75,7 @@ public final class ConfigHelper {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Read the default configuration
|
||||
InputStream configStream = loadInternalFile(plugin, CONFIG_FILE, "internal configuration");
|
||||
if (configStream == null) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user