Tweaked Dungeon Tutorial Copy Code
Tweaked the code that copies the dungeon export tutorial. I'm not sure it worked all the time before. It didn't seem quite right. I've confirmed it's working better now. Also cleaned up copyfile a little.
This commit is contained in:
@@ -107,13 +107,10 @@ public class DungeonHelper
|
||||
private void initializeDungeons()
|
||||
{
|
||||
File file = new File(properties.CustomSchematicDirectory);
|
||||
String helpFile = "/mods/DimDoors/How_to_add_dungeons.txt";
|
||||
if (new File(helpFile).exists())
|
||||
if (file.exists() || file.mkdir())
|
||||
{
|
||||
copyfile.copyFile(helpFile, file + "/How_to_add_dungeons.txt");
|
||||
copyfile.copyFile("/mods/DimDoors/How_to_add_dungeons.txt", file.getAbsolutePath() + "/How_to_add_dungeons.txt");
|
||||
}
|
||||
file.mkdir();
|
||||
|
||||
registerFlipBlocks();
|
||||
importCustomDungeons(properties.CustomSchematicDirectory);
|
||||
registerBaseDungeons();
|
||||
|
||||
Reference in New Issue
Block a user