aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/DungeonContext.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/DungeonContext.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/DungeonContext.java
index 42fa664c..c1d4cff3 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/DungeonContext.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/DungeonContext.java
@@ -190,8 +190,7 @@ public class DungeonContext {
}
private int mapId = -1;
public void onMapUpdate(MapUpdateEvent mapUpdateEvent) {
- if (mapUpdateEvent.getMapId() > 10000) return; // tictactoe
- if (mapId == -1) {
+ if (mapId == -1 && mapUpdateEvent.getMapData().colors[0] == 0) { // dungeon map top left is ALWAYS 0.
mapId = mapUpdateEvent.getMapId();
}
if (mapId != mapUpdateEvent.getMapId()) return;