diff options
author | syeyoung <cyoung06@naver.com> | 2022-05-06 23:22:19 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2022-05-06 23:22:19 +0900 |
commit | dbe90f8a3629c723fcbc7784dd46617887c06fe1 (patch) | |
tree | e05cfa8a859fffe11d38c1581d131bc0875d74e4 /src/main/java/kr/syeyoung/dungeonsguide/roomprocessor | |
parent | e37040dc90c77a9709c05ef822e8ba10c12663f0 (diff) | |
download | Skyblock-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/roomprocessor')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java index 33388023..22daf0f2 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java @@ -339,17 +339,18 @@ public class GeneralRoomProcessor implements RoomProcessor { searchForNextTarget(); } else if (FeatureRegistry.SECRET_CREATE_REFRESH_LINE.getKeybind() == keyInputEvent.getKey() && FeatureRegistry.SECRET_CREATE_REFRESH_LINE.isEnabled()) { ActionRoute actionRoute = getBestFit(0); - if (actionRoute.getCurrentAction() instanceof ActionMove) { - ActionMove ac = (ActionMove) actionRoute.getCurrentAction(); - ac.forceRefresh(getDungeonRoom()); - } else if (actionRoute.getCurrentAction() instanceof ActionMoveNearestAir) { - ActionMoveNearestAir ac = (ActionMoveNearestAir) actionRoute.getCurrentAction(); - ac.forceRefresh(getDungeonRoom()); - } else if (actionRoute.getCurrent() >= 1 && actionRoute.getActions().get(actionRoute.getCurrent()-1) instanceof ActionMove) { - ((ActionMove)actionRoute.getActions().get(actionRoute.getCurrent()-1)).forceRefresh(dungeonRoom); - } else if (actionRoute.getCurrent() >= 1 && actionRoute.getActions().get(actionRoute.getCurrent()-1) instanceof ActionMoveNearestAir) { - ((ActionMoveNearestAir)actionRoute.getActions().get(actionRoute.getCurrent()-1)).forceRefresh(dungeonRoom); - } + // disable force refresh. It's bad idea. +// if (actionRoute.getCurrentAction() instanceof ActionMove) { +// ActionMove ac = (ActionMove) actionRoute.getCurrentAction(); +// ac.forceRefresh(getDungeonRoom()); +// } else if (actionRoute.getCurrentAction() instanceof ActionMoveNearestAir) { +// ActionMoveNearestAir ac = (ActionMoveNearestAir) actionRoute.getCurrentAction(); +// ac.forceRefresh(getDungeonRoom()); +// } else if (actionRoute.getCurrent() >= 1 && actionRoute.getActions().get(actionRoute.getCurrent()-1) instanceof ActionMove) { +// ((ActionMove)actionRoute.getActions().get(actionRoute.getCurrent()-1)).forceRefresh(dungeonRoom); +// } else if (actionRoute.getCurrent() >= 1 && actionRoute.getActions().get(actionRoute.getCurrent()-1) instanceof ActionMoveNearestAir) { +// ((ActionMoveNearestAir)actionRoute.getActions().get(actionRoute.getCurrent()-1)).forceRefresh(dungeonRoom); +// } if (FeatureRegistry.SECRET_CREATE_REFRESH_LINE.isPathfind() && !actionRoute.getActionRouteProperties().isPathfind()) { actionRoute.getActionRouteProperties().setPathfind(true); |