Remove RecipeLoader

This commit is contained in:
Aidan Brady 2013-12-03 21:57:03 -05:00
parent 1cfdd805f3
commit a228c659cd
2 changed files with 0 additions and 45 deletions

View file

@ -1102,8 +1102,6 @@ public class Mekanism
logger.setParent(FMLLog.getLogger());
File config = event.getSuggestedConfigurationFile();
RecipeLoader.init(event.getModConfigurationDirectory());
//Set the mod's configuration
configuration = new Configuration(config);

View file

@ -1,43 +0,0 @@
package mekanism.common;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public final class RecipeLoader
{
public static File recipeFile;
public static void init(File dir)
{
recipeFile = new File(dir, "MekanismRecipes.txt");
/*if(!recipeFile.exists())
{
try {
recipeFile.createNewFile();
writeExamples();
} catch(Exception e) {}
}*/
}
public static void writeExamples()
{
try {
BufferedWriter writer = new BufferedWriter(new FileWriter(recipeFile));
write(writer, "Examples:");
write(writer, "crafting:{5, 1, 6},{XXX,XOX,XXX},{X,{");
writer.flush();
writer.close();
} catch(Exception e) {}
}
public static void write(BufferedWriter writer, String s) throws IOException
{
writer.append(s);
writer.newLine();
}
}