diff --git a/src/main/java/com/skcraft/alicefixes/AliceTransformer.java b/src/main/java/com/skcraft/alicefixes/AliceTransformer.java index 196d9d2..d4da3b1 100644 --- a/src/main/java/com/skcraft/alicefixes/AliceTransformer.java +++ b/src/main/java/com/skcraft/alicefixes/AliceTransformer.java @@ -29,7 +29,7 @@ public AliceTransformer() { Blacklist.load(configDir); File configFile = new File(configDir, "AFPatches.json"); - if(configFile.isFile()) { + if(!configFile.createNewFile()) { Gson gson = new Gson(); JsonObject obj = parser.parse(FileUtils.readFileToString(configFile)).getAsJsonObject(); PatchList patchList = gson.fromJson(obj, PatchList.class); diff --git a/src/main/java/com/skcraft/alicefixes/Blacklist.java b/src/main/java/com/skcraft/alicefixes/Blacklist.java index 1cb28a1..0520794 100644 --- a/src/main/java/com/skcraft/alicefixes/Blacklist.java +++ b/src/main/java/com/skcraft/alicefixes/Blacklist.java @@ -20,6 +20,7 @@ public static void load(File configDir) { try { Gson gson = new Gson(); config = new File(configDir, "Blacklists.json"); + config.createNewFile(); BufferedReader br = new BufferedReader(new FileReader(config)); BlackLists storedLists = gson.fromJson(br, BlackLists.class); if(storedLists != null) {