From 77965d7d0d81b9e0f51c94eb5ebb4f2ec9470da1 Mon Sep 17 00:00:00 2001 From: StevenRS11 Date: Tue, 18 Jun 2013 18:08:19 -0400 Subject: [PATCH] Patched bug with dungeon selection on old worlds --- StevenDimDoors/mod_pocketDim/SchematicLoader.java | 11 ++++++++--- .../mod_pocketDim/helpers/DungeonHelper.java | 6 ------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/StevenDimDoors/mod_pocketDim/SchematicLoader.java b/StevenDimDoors/mod_pocketDim/SchematicLoader.java index 3afe6adb..6652b1cc 100644 --- a/StevenDimDoors/mod_pocketDim/SchematicLoader.java +++ b/StevenDimDoors/mod_pocketDim/SchematicLoader.java @@ -76,12 +76,17 @@ public class SchematicLoader String filePath=DungeonHelper.instance().defaultBreak.schematicPath; if(dimHelper.dimList.containsKey(link.destDimID)) { - if(dimHelper.dimList.get(link.destDimID).dungeonGenerator!=null) + if(dimHelper.dimList.get(link.destDimID).dungeonGenerator==null) { - filePath = dimHelper.dimList.get(link.destDimID).dungeonGenerator.schematicPath; - + + DungeonHelper.instance().generateDungeonLink(link); + } + + filePath = dimHelper.dimList.get(link.destDimID).dungeonGenerator.schematicPath; + } + diff --git a/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java b/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java index 5c3286f9..c01ebcb3 100644 --- a/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java +++ b/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java @@ -523,12 +523,6 @@ public class DungeonHelper boolean flag = true; try { - if (dimHelper.dimList.get(incoming.destDimID) != null && - dimHelper.dimList.get(incoming.destDimID).dungeonGenerator != null) - { - mod_pocketDim.loader.init(incoming); - return; - } if (incoming.destYCoord > 15) {