Remove RecipeLoader
This commit is contained in:
parent
1cfdd805f3
commit
a228c659cd
2 changed files with 0 additions and 45 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue