patch crash no mods folder

This commit is contained in:
marc barbier
2021-01-14 14:25:44 +01:00
parent 3ff34f646b
commit 57003bee2f
2 changed files with 16 additions and 0 deletions
+9
View File
@@ -6,9 +6,18 @@ import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Paths;
public class Main {
public static void main(String[] args) throws FileNotFoundException, IOException, URISyntaxException {
try {
Files.createDirectories(Paths.get("mods"));
} catch (IOException e) {
Log.e("HTTPHelper","could not create folder");
System.exit(0);
}
IntegrityChecker updateManager = new IntegrityChecker();
Database db = new Database();