Improved DungeonHelper

Completed changes so that our code uses registerDungeon() (formerly
registerCustomDungeons() ) to register all dungeons, both bundled with
the mod and custom ones. Made some changes to the code to hide
implementation details from other classes. Also, I had some problems
with old dungeons being mixed into the renamed ones. I had to remove
fallingTNThall from the schematics folder and deleted the WIP folder
because I think we have completed versions of those schematics already.

Some of our dungeons have pre-filled chests and the contents are more
generous than our current loot system (e.g. ruinsO has a prefilled
chest). I'll have to wipe all the chests later.
This commit is contained in:
SenseiKiwi
2013-08-01 13:00:27 -04:00
parent a174ad4b29
commit 0b9f8fa5d5
7 changed files with 150 additions and 15 deletions

View File

@@ -132,7 +132,7 @@ public class CommandExportDungeon extends DDCommandBase
if (dungeonHelper.exportDungeon(player.worldObj, x, y, z, exportPath))
{
player.sendChatToPlayer("Saved dungeon schematic in " + exportPath);
dungeonHelper.registerCustomDungeon(new File(exportPath));
dungeonHelper.registerDungeon(exportPath, false, true);
return DDCommandResult.SUCCESS;
}
else