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/data | |
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/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/CropAccessoryData.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/MayorElection.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/CropAccessoryData.kt b/src/main/java/at/hannibal2/skyhanni/data/CropAccessoryData.kt index c3cbab117..c0561d83a 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/CropAccessoryData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/CropAccessoryData.kt @@ -85,7 +85,7 @@ class CropAccessoryData { // Handle inventory detection @SubscribeEvent fun onTick(event: LorenzTickEvent) { - if (!event.isMod(20)) return + if (!event.repeatSeconds(1)) return if (!LorenzUtils.inSkyBlock) return accessoryInInventory = bestCropAccessory(InventoryUtils.getItemsInOwnInventory()) if (accessoryInInventory == CropAccessory.NONE) return diff --git a/src/main/java/at/hannibal2/skyhanni/data/MayorElection.kt b/src/main/java/at/hannibal2/skyhanni/data/MayorElection.kt index ac6c82044..a0b8ae9bc 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/MayorElection.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/MayorElection.kt @@ -32,7 +32,7 @@ class MayorElection { fun onTick(event: LorenzTickEvent) { if (!LorenzUtils.onHypixel) return - if (event.isMod(60)) { + if (event.repeatSeconds(3)) { check() } } |