Explorar o código

Ensure the FlatFile directory exists.

Fixes #1842
Sean Porter %!s(int64=11) %!d(string=hai) anos
pai
achega
d63c3fc6d0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/main/java/com/gmail/nossr50/mcMMO.java

+ 3 - 0
src/main/java/com/gmail/nossr50/mcMMO.java

@@ -374,6 +374,9 @@ public class mcMMO extends JavaPlugin {
                 getLogger().warning("Failed to rename tools.yml to tools.default.yml!");
             }
         }
+
+        File currentFlatfilePath = new File(flatFileDirectory);
+        currentFlatfilePath.mkdirs();
     }
 
     private void checkForUpdates() {