diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-25 04:22:54 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-25 04:22:54 +0200 |
commit | 2ceaf10eb8cc7a78f0679a07c85c95edb1a03003 (patch) | |
tree | 078760f77b75acaccaaa48c87b40b4fa47481eda /src/main/java/at/hannibal2/skyhanni/features/bingo | |
parent | a2ea62c88e4b7d25b27ccfde3d4d94d39c0a419f (diff) | |
download | skyhanni-2ceaf10eb8cc7a78f0679a07c85c95edb1a03003.tar.gz skyhanni-2ceaf10eb8cc7a78f0679a07c85c95edb1a03003.tar.bz2 skyhanni-2ceaf10eb8cc7a78f0679a07c85c95edb1a03003.zip |
repeatSeconds
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bingo')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt index 82d2f4760..fa20cf268 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoNextStepHelper.kt @@ -112,7 +112,7 @@ class BingoNextStepHelper { if (!LorenzUtils.isBingoProfile) return if (!config.enabled) return - if (event.isMod(20)) { + if (event.repeatSeconds(1)) { update() updateIslandsVisited() } diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt index 41a601b0b..1a1d8043f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt @@ -42,7 +42,7 @@ class MinionCraftHelper { hasMinionInInventory = mainInventory.mapNotNull { it?.name }.any { isMinionName(it) } } - if (event.isMod(60 * 2)) { + if (event.repeatSeconds(2)) { val mainInventory = Minecraft.getMinecraft()?.thePlayer?.inventory?.mainInventory ?: return hasItemsForMinion = loadFromInventory(mainInventory).first.isNotEmpty() } |