diff options
author | syeyoung <cyong06@naver.com> | 2021-02-15 01:58:32 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-02-15 01:58:32 +0900 |
commit | 4cdd6e46fcdff39e8924f81f37fcfb4575fb3ffd (patch) | |
tree | 9e9a55b010154ebd67d929da188841acb2d06b26 /src/main/java/kr/syeyoung/dungeonsguide/dungeon | |
parent | befa8982a0a8d929e65a23b66040671a45181ef4 (diff) | |
download | Skyblock-Dungeons-Guide-4cdd6e46fcdff39e8924f81f37fcfb4575fb3ffd.tar.gz Skyblock-Dungeons-Guide-4cdd6e46fcdff39e8924f81f37fcfb4575fb3ffd.tar.bz2 Skyblock-Dungeons-Guide-4cdd6e46fcdff39e8924f81f37fcfb4575fb3ffd.zip |
tweaks to pathfinding
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java | 2 | ||||
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java index 5079f4c9..2fc86b8e 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java @@ -64,7 +64,7 @@ public class ActionMove extends AbstractAction { tick = (tick+1) % 10; if (tick == 0) { latest = dungeonRoom.getPathFinder().createEntityPathTo(dungeonRoom.getContext().getWorld(), - Minecraft.getMinecraft().thePlayer, target.getBlockPos(dungeonRoom), 100); + Minecraft.getMinecraft().thePlayer, target.getBlockPos(dungeonRoom), Integer.MAX_VALUE); } } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java index 994c7a7d..3f8e4061 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java @@ -57,7 +57,7 @@ public class ActionMoveNearestAir extends AbstractAction { tick = (tick+1) % 10; if (tick == 0) { latest = dungeonRoom.getPathFinder().createEntityPathTo(dungeonRoom.getContext().getWorld(), - Minecraft.getMinecraft().thePlayer, target.getBlockPos(dungeonRoom), 100); + Minecraft.getMinecraft().thePlayer, target.getBlockPos(dungeonRoom), Integer.MAX_VALUE); } } @Override |