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 dataFolder = plugin.getDataFolder();
 | 
				
			||||||
        File config = new File(dataFolder, CONFIG_FILE);
 | 
					        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
 | 
					        //Save the old config just in case something goes wrong
 | 
				
			||||||
 | 
					        FileConfiguration oldConfiguration = plugin.getConfig();
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            oldConfiguration.save(new File(dataFolder, BACKUP_CONFIG_FILE));
 | 
					            oldConfiguration.save(new File(dataFolder, BACKUP_CONFIG_FILE));
 | 
				
			||||||
        } catch (IOException exception) {
 | 
					        } catch (IOException exception) {
 | 
				
			||||||
@@ -77,6 +75,7 @@ public final class ConfigHelper {
 | 
				
			|||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // Read the default configuration
 | 
				
			||||||
        InputStream configStream = loadInternalFile(plugin, CONFIG_FILE, "internal configuration");
 | 
					        InputStream configStream = loadInternalFile(plugin, CONFIG_FILE, "internal configuration");
 | 
				
			||||||
        if (configStream == null) {
 | 
					        if (configStream == null) {
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user