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(){ public static File getTheFile(){
try{ try{
if(!theFile.exists()){ if(!theFile.exists()){
theFile.mkdirs();
theFile.createNewFile(); theFile.createNewFile();
} }
} }

View file

@ -93,7 +93,6 @@ public class WorldData{
if(dataFile != null){ if(dataFile != null){
if(!dataFile.exists()){ if(!dataFile.exists()){
dataFile.mkdirs();
dataFile.createNewFile(); dataFile.createNewFile();
ModUtil.LOGGER.info("Creating new WorldData file for world "+data.dimension+"!"); 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()){ if(ConfigBoolValues.BOOKLET_TEXT_TO_FILE.isEnabled()){
File file = new File(Minecraft.getMinecraft().mcDataDir, ModUtil.MOD_ID+"booklettext.txt"); File file = new File(Minecraft.getMinecraft().mcDataDir, ModUtil.MOD_ID+"booklettext.txt");
try{ try{
file.mkdirs();
file.createNewFile(); file.createNewFile();
BufferedWriter writer = new BufferedWriter(new FileWriter(file)); BufferedWriter writer = new BufferedWriter(new FileWriter(file));
writer.write(TextFormatting.getTextWithoutFormattingCodes(bookletText)); writer.write(TextFormatting.getTextWithoutFormattingCodes(bookletText));