aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomprocessor')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
index ed5dfc87..b3a42aa0 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
@@ -65,6 +65,11 @@ public class GeneralRoomProcessor implements RoomProcessor {
private Set<String> visited = new HashSet<String>();
public void searchForNextTarget() {
+ if (getDungeonRoom().getCurrentState() == DungeonRoom.RoomState.FINISHED) {
+ cancel();
+ return;
+ }
+
BlockPos pos = Minecraft.getMinecraft().thePlayer.getPosition();
double lowestCost = 99999999999999.0;