diff options
author | syeyoung <cyoung06@naver.com> | 2023-10-09 17:58:08 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-10-09 17:58:08 +0900 |
commit | 81330de66d2c39d86844463f1d0f3a4f71929e66 (patch) | |
tree | c8d9df9c318268fdd744fc1bdc213b96571492eb /mod/src/main/java/kr/syeyoung/dungeonsguide | |
parent | aec3cfeeaf43c31f9f2a191aeca5e10b41bddf15 (diff) | |
download | Skyblock-Dungeons-Guide-81330de66d2c39d86844463f1d0f3a4f71929e66.tar.gz Skyblock-Dungeons-Guide-81330de66d2c39d86844463f1d0f3a4f71929e66.tar.bz2 Skyblock-Dungeons-Guide-81330de66d2c39d86844463f1d0f3a4f71929e66.zip |
- change the way we detect dungeon map, because previous one caused problems
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java/kr/syeyoung/dungeonsguide')
-rwxr-xr-x | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/DungeonContext.java | 3 |
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; |