aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-03-31 10:40:12 +0900
committersyeyoung <cyong06@naver.com>2021-03-31 10:40:12 +0900
commit15317450019d9fe10ab0f599f0c0fdf900fdaf0c (patch)
tree9fc25f6bfe67e1bd8ccf0536be5027eba310ac48 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java
parent833e0c8834b8df95b33e44f579a66d58b53679c3 (diff)
downloadSkyblock-Dungeons-Guide-15317450019d9fe10ab0f599f0c0fdf900fdaf0c.tar.gz
Skyblock-Dungeons-Guide-15317450019d9fe10ab0f599f0c0fdf900fdaf0c.tar.bz2
Skyblock-Dungeons-Guide-15317450019d9fe10ab0f599f0c0fdf900fdaf0c.zip
bug fixes
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java
index 2966f67b..32bda60a 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java
@@ -90,7 +90,9 @@ public class DungeonContext {
createEvent(new DungeonNodataEvent("DUNGEON_CONTEXT_CREATION"));
mapProcessor = new MapProcessor(this);
DungeonSpecificDataProvider doorFinder = DungeonSpecificDataProviderRegistry.getDoorFinder(((SkyblockStatus) e.getDungeonsGuide().getSkyblockStatus()).getDungeonName());
- trapRoomGen = doorFinder.isTrapSpawn(e.getDungeonsGuide().getSkyblockStatus().getDungeonName());
+ if (doorFinder != null)
+ trapRoomGen = doorFinder.isTrapSpawn(e.getDungeonsGuide().getSkyblockStatus().getDungeonName());
+ else mapProcessor.setBugged(true);
init = System.currentTimeMillis();
}