diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/data/ExtraClientData.java b/src/main/java/de/ellpeck/actuallyadditions/mod/data/ExtraClientData.java index 09e2c72c2..e46e24343 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/data/ExtraClientData.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/data/ExtraClientData.java @@ -78,6 +78,7 @@ public class ExtraClientData{ public static File getTheFile(){ try{ if(!theFile.exists()){ + theFile.mkdirs(); theFile.createNewFile(); } } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/data/WorldData.java b/src/main/java/de/ellpeck/actuallyadditions/mod/data/WorldData.java index 2d4ce8eab..2c613028c 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/data/WorldData.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/data/WorldData.java @@ -135,6 +135,7 @@ public class WorldData{ if(dataFile != null){ if(!dataFile.exists()){ + dataFile.mkdirs(); dataFile.createNewFile(); ModUtil.LOGGER.info("Creating new WorldData file for world "+data.dimension+"!"); } @@ -144,8 +145,6 @@ public class WorldData{ FileOutputStream stream = new FileOutputStream(dataFile); CompressedStreamTools.writeCompressed(compound, stream); stream.close(); - - ModUtil.LOGGER.info("Saved WorldData for world "+data.dimension+"!"); } } catch(Exception e){ diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/proxy/ClientProxy.java b/src/main/java/de/ellpeck/actuallyadditions/mod/proxy/ClientProxy.java index cd94833db..694dbf949 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/proxy/ClientProxy.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/proxy/ClientProxy.java @@ -94,6 +94,7 @@ public class ClientProxy implements IProxy{ if(ConfigBoolValues.BOOKLET_TEXT_TO_FILE.isEnabled()){ File file = new File(Minecraft.getMinecraft().mcDataDir, ModUtil.MOD_ID+"booklettext.txt"); try{ + file.mkdirs(); file.createNewFile(); BufferedWriter writer = new BufferedWriter(new FileWriter(file)); writer.write(TextFormatting.getTextWithoutFormattingCodes(bookletText));