aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/mining
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-04-04 04:56:02 +1100
committerGitHub <noreply@github.com>2024-04-03 19:56:02 +0200
commit1d051f3e1e35489989ca109f1493154641c23068 (patch)
treea3df2f70828ce87f487f43d6956718ab4c261838 /src/main/java/at/hannibal2/skyhanni/features/mining
parent14980034dd0fb71973e15c40e1a8a6f4eaa29895 (diff)
downloadskyhanni-1d051f3e1e35489989ca109f1493154641c23068.tar.gz
skyhanni-1d051f3e1e35489989ca109f1493154641c23068.tar.bz2
skyhanni-1d051f3e1e35489989ca109f1493154641c23068.zip
Fix: Tick event being called twice a tick (#1342)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/mining')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
index 5a4bf0f89..ca92ddb2b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/KingTalismanHelper.kt
@@ -71,7 +71,7 @@ class KingTalismanHelper {
@SubscribeEvent
fun onTick(event: LorenzTickEvent) {
- if (!event.isMod(20)) return
+ if (!event.repeatSeconds(1)) return
if (!isEnabled()) return
val storage = storage ?: return