aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/itemabilities
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-03 16:40:15 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-03 16:40:15 +0200
commit60f6f77cd54b2aba747e6b98d5e6268c7b97bc28 (patch)
tree6a39671dd8760fbd6392a85ba34b9bc73a73f141 /src/main/java/at/hannibal2/skyhanni/features/itemabilities
parentab1f85b6184cae079a9cbf1d7a8fd840028e47fd (diff)
downloadskyhanni-60f6f77cd54b2aba747e6b98d5e6268c7b97bc28.tar.gz
skyhanni-60f6f77cd54b2aba747e6b98d5e6268c7b97bc28.tar.bz2
skyhanni-60f6f77cd54b2aba747e6b98d5e6268c7b97bc28.zip
Fixed weird tuba ability cooldown not working in rift
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/itemabilities')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
index afb1210aa..98bd41560 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt
@@ -3,7 +3,6 @@ package at.hannibal2.skyhanni.features.itemabilities.abilitycooldown
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.ItemRenderBackground.Companion.background
import at.hannibal2.skyhanni.events.*
-import at.hannibal2.skyhanni.features.rift.everywhere.RiftAPI
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils
import at.hannibal2.skyhanni.utils.ItemUtils.cleanName
@@ -91,9 +90,11 @@ class ItemAbilityCooldown {
}
if (event.soundName == "mob.wolf.howl") {
if (event.volume == 0.5f) {
- if (!RiftAPI.inRift()) {
+ val recentItems = InventoryUtils.recentItemsInHand.values
+ if ("WEIRD_TUBA" in recentItems) {
ItemAbility.WEIRD_TUBA.sound()
- } else {
+ }
+ if ("WEIRDER_TUBA" in recentItems) {
ItemAbility.WEIRDER_TUBA.sound()
}
}