diff options
author | syeyoung <cyong06@naver.com> | 2021-05-01 14:36:48 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-05-01 14:36:48 +0900 |
commit | 4d858161e0321c479927e7f28bf516189781914e (patch) | |
tree | 42ee5394f90afec98acdd74fbedea7971a0b195a /src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java | |
parent | c60485da3704c1ac91f614f8020c79f5a92a599e (diff) | |
download | Skyblock-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-x | src/main/java/kr/syeyoung/dungeonsguide/dungeon/actions/ActionMoveNearestAir.java | 2 |
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(); |