Don't make directories

This commit is contained in:
Ellpeck 2016-06-05 17:37:18 +02:00
parent 52b8196220
commit 5bd872620c
3 changed files with 0 additions and 3 deletions

View file

@ -78,7 +78,6 @@ public class ExtraClientData{
public static File getTheFile(){
try{
if(!theFile.exists()){
theFile.mkdirs();
theFile.createNewFile();
}
}

View file

@ -93,7 +93,6 @@ public class WorldData{
if(dataFile != null){
if(!dataFile.exists()){
dataFile.mkdirs();
dataFile.createNewFile();
ModUtil.LOGGER.info("Creating new WorldData file for world "+data.dimension+"!");
}

View file

@ -94,7 +94,6 @@ 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));