aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/rift
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/rift
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/rift')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt
index d64ce53d3..c037d5cfc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt
@@ -17,9 +17,7 @@ class ShyCruxWarnings {
@SubscribeEvent
fun onTick(event: LorenzTickEvent) {
if (!RiftAPI.inRift() || !config.shyWarning) return
- if (event.isMod(2)) {
- checkForShy()
- }
+ checkForShy()
}
private fun checkForShy() {
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt
index bf14e2277..9167f3b25 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/motes/ShowMotesNpcSellPrice.kt
@@ -59,8 +59,8 @@ class ShowMotesNpcSellPrice {
@SubscribeEvent
fun onTick(event: LorenzTickEvent) {
if (!isInventoryValueEnabled()) return
- if (event.isMod(10))
- processItems()
+ if (!event.isMod(10, 1)) return
+ processItems()
}
@SubscribeEvent(priority = EventPriority.LOW)