From 4d858161e0321c479927e7f28bf516189781914e Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 1 May 2021 14:36:48 +0900 Subject: all tested. --- .../kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java') 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 3c2131ee..3a49005d 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java @@ -60,7 +60,7 @@ public class ActionMoveNearestAir extends AbstractAction { private Future> latestFuture; @Override public void onTick(DungeonRoom dungeonRoom) { - tick = (tick+1) % 10; + tick = (tick+1) % Math.max(1, FeatureRegistry.SECRET_BROWSE.getRefreshRate()); if (latestFuture != null && latestFuture.isDone()) { try { poses = latestFuture.get(); -- cgit