aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-05-01 14:36:48 +0900
committersyeyoung <cyong06@naver.com>2021-05-01 14:36:48 +0900
commit4d858161e0321c479927e7f28bf516189781914e (patch)
tree42ee5394f90afec98acdd74fbedea7971a0b195a /src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java
parentc60485da3704c1ac91f614f8020c79f5a92a599e (diff)
downloadSkyblock-Dungeons-Guide-4d858161e0321c479927e7f28bf516189781914e.tar.gz
Skyblock-Dungeons-Guide-4d858161e0321c479927e7f28bf516189781914e.tar.bz2
Skyblock-Dungeons-Guide-4d858161e0321c479927e7f28bf516189781914e.zip
all tested.
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java2
1 files changed, 1 insertions, 1 deletions
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<List<BlockPos>> 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();