diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-29 17:47:57 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-11-29 17:47:57 +0900 |
commit | 8cd3bed0597cd6c452371630d93f4d58b0602bd3 (patch) | |
tree | 276808c79b6039df9c2668d4a8a06a6a0e294f3b /src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java | |
parent | bb507052d573c2754289a0de58de88fc72eade3a (diff) | |
download | Skyblock-Dungeons-Guide-8cd3bed0597cd6c452371630d93f4d58b0602bd3.tar.gz Skyblock-Dungeons-Guide-8cd3bed0597cd6c452371630d93f4d58b0602bd3.tar.bz2 Skyblock-Dungeons-Guide-8cd3bed0597cd6c452371630d93f4d58b0602bd3.zip |
pouzles
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java index a88c0e43..32124452 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java @@ -40,6 +40,7 @@ public class MapProcessor { private static final Set<Vector2d> directions = Sets.newHashSet(new Vector2d(0,1), new Vector2d(0, -1), new Vector2d(1, 0), new Vector2d(-1 , 0)); + private int waitCnt = 0; private void buildMap(final byte[] mapData) { final Point startroom = MapUtils.findFirstColorWithIn(mapData, (byte) 30, new Rectangle(0,0,128,128)); if (startroom == null){ @@ -243,10 +244,14 @@ public class MapProcessor { pt.translate(xOff, yOff); byte unit3 = MapUtils.getMapColorAt(mapData, pt.x, pt.y); - return unit1 == unit2 && unit2 == unit3; + return unit1 == unit2 && unit2 == unit3 && unit1 != 0; } public void tick() { + if (waitCnt < 5) { + waitCnt++; + return; + } if (bugged) return; ItemStack stack = Minecraft.getMinecraft().thePlayer.inventory.getStackInSlot(8); byte[] mapData; |