aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-24 15:16:47 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-24 15:16:47 +0100
commit2b581ce23be9425f1a22255ea923b028042a0838 (patch)
tree71ea57ef99d95ee0b1a50eb72458cc9853a439b2 /src/main/java/at/hannibal2/skyhanni/features
parent40f8dd3b9c3727b03d8fbf1f2882d88bb9a19c6a (diff)
downloadskyhanni-2b581ce23be9425f1a22255ea923b028042a0838.tar.gz
skyhanni-2b581ce23be9425f1a22255ea923b028042a0838.tar.bz2
skyhanni-2b581ce23be9425f1a22255ea923b028042a0838.zip
Fixed left click ability detection of Gyro Wand.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt5
1 files changed, 1 insertions, 4 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 08e2b9820..3a4324853 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
@@ -1,7 +1,6 @@
package at.hannibal2.skyhanni.features.itemabilities.abilitycooldown
import at.hannibal2.skyhanni.SkyHanniMod
-import at.hannibal2.skyhanni.data.ClickType
import at.hannibal2.skyhanni.data.ItemRenderBackground.Companion.background
import at.hannibal2.skyhanni.events.ItemClickEvent
import at.hannibal2.skyhanni.events.LorenzActionBarEvent
@@ -160,9 +159,7 @@ class ItemAbilityCooldown {
@SubscribeEvent
fun onItemClick(event: ItemClickEvent) {
- if (event.clickType == ClickType.RIGHT_CLICK) {
- handleItemClick(event.itemInHand)
- }
+ handleItemClick(event.itemInHand)
}
private fun handleItemClick(itemInHand: ItemStack?) {