Explorar el Código

Fixed NPE at startup

bm01 hace 13 años
padre
commit
36a5039c12
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/main/java/com/gmail/nossr50/mcMMO.java

+ 1 - 2
src/main/java/com/gmail/nossr50/mcMMO.java

@@ -99,8 +99,7 @@ public class mcMMO extends JavaPlugin {
         this.config2 = new LoadTreasures(this);
         this.config2.load();
 
-        Party.getInstance().loadParties();
-        new Party(this);
+        new Party(this).loadParties();
 
         if (!LoadProperties.useMySQL) {
             Users.loadUsers();