aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2022-05-06 23:22:19 +0900
committersyeyoung <cyoung06@naver.com>2022-05-06 23:22:19 +0900
commitdbe90f8a3629c723fcbc7784dd46617887c06fe1 (patch)
treee05cfa8a859fffe11d38c1581d131bc0875d74e4 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
parente37040dc90c77a9709c05ef822e8ba10c12663f0 (diff)
downloadSkyblock-Dungeons-Guide-dbe90f8a3629c723fcbc7784dd46617887c06fe1.tar.gz
Skyblock-Dungeons-Guide-dbe90f8a3629c723fcbc7784dd46617887c06fe1.tar.bz2
Skyblock-Dungeons-Guide-dbe90f8a3629c723fcbc7784dd46617887c06fe1.zip
- Find route, with timeout 10s
- Do not cancel pathfinds (doesn't even work)
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java7
1 files changed, 2 insertions, 5 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 dc0854c5..d486d220 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMove.java
@@ -95,12 +95,9 @@ public class ActionMove extends AbstractAction {
}
}
- if (tick == 0 && actionRouteProperties.isPathfind()) {
- try {
- if (latestFuture != null) latestFuture.cancel(true);
- } catch (Exception ignored) {}
+ if (tick == 0 && actionRouteProperties.isPathfind() && latestFuture == null) {
if (!FeatureRegistry.SECRET_FREEZE_LINES.isEnabled() || poses == null)
- latestFuture = dungeonRoom.createEntityPathTo(dungeonRoom.getContext().getWorld(), Minecraft.getMinecraft().thePlayer, target.getBlockPos(dungeonRoom), Integer.MAX_VALUE, actionRouteProperties.getLineRefreshRate()* 50- 10);
+ latestFuture = dungeonRoom.createEntityPathTo(dungeonRoom.getContext().getWorld(), Minecraft.getMinecraft().thePlayer, target.getBlockPos(dungeonRoom), Integer.MAX_VALUE, 10000);
}
}