diff options
author | syeyoung <cyong06@naver.com> | 2021-03-31 10:40:12 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-03-31 10:40:12 +0900 |
commit | 15317450019d9fe10ab0f599f0c0fdf900fdaf0c (patch) | |
tree | 9fc25f6bfe67e1bd8ccf0536be5027eba310ac48 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java | |
parent | 833e0c8834b8df95b33e44f579a66d58b53679c3 (diff) | |
download | Skyblock-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-x | src/main/java/kr/syeyoung/dungeonsguide/dungeon/DungeonContext.java | 4 |
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(); } |