diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2022-11-08 12:43:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 12:43:16 +0900 |
commit | 4ab5c2f66b0592600d14486ecf4d1628e6c856dc (patch) | |
tree | e7a7430e8416d8d1215fd2e6d789271f06bbdd05 | |
parent | a51fda82aec96fbb1597e04e9919caaef500c2eb (diff) | |
download | Skyblock-Dungeons-Guide-4ab5c2f66b0592600d14486ecf4d1628e6c856dc.tar.gz Skyblock-Dungeons-Guide-4ab5c2f66b0592600d14486ecf4d1628e6c856dc.tar.bz2 Skyblock-Dungeons-Guide-4ab5c2f66b0592600d14486ecf4d1628e6c856dc.zip |
Fix NPE in RoomProcessor on refresh line (#77)
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java index 22cdb20c..b4df434f 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/GeneralRoomProcessor.java @@ -339,6 +339,8 @@ 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); + // Because no route found! + if (actionRoute == null) return; // actually do force refresh because of force freeze pathfind if (actionRoute.getCurrentAction() instanceof ActionMove) { ActionMove ac = (ActionMove) actionRoute.getCurrentAction(); |