mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Attempt to fix NPE spam when MySQL connection failed
This is how it was before my cleanup, I find what the methods do and/or how they're named a little weird, We may want to do something about it.
This commit is contained in:
		@@ -180,7 +180,8 @@ public class mcMMO extends JavaPlugin {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        //Setup the leader boards
 | 
					        //Setup the leader boards
 | 
				
			||||||
        if (configInstance.getUseMySQL()) {
 | 
					        if (configInstance.getUseMySQL()) {
 | 
				
			||||||
            Database.connect();
 | 
					            // TODO: Why do we have to check for a connection that hasn't be made yet? 
 | 
				
			||||||
 | 
					            Database.checkConnected();
 | 
				
			||||||
            Database.createStructure();
 | 
					            Database.createStructure();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else {
 | 
					        else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user