diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-06 12:29:49 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-06 12:29:49 +0100 |
commit | ea1260bd9b54ae4f5f51a7e4058fa5a07e0f3240 (patch) | |
tree | 6d410f1981f87a74109053644b58cc35290f9d1a /src/main/java/at/hannibal2 | |
parent | 391b7818a012c4209ce585d5882e7d94199783c1 (diff) | |
download | skyhanni-ea1260bd9b54ae4f5f51a7e4058fa5a07e0f3240.tar.gz skyhanni-ea1260bd9b54ae4f5f51a7e4058fa5a07e0f3240.tar.bz2 skyhanni-ea1260bd9b54ae4f5f51a7e4058fa5a07e0f3240.zip |
Reset item ability cooldowns on world switch.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/itemabilities/abilitycooldown/ItemAbilityCooldown.kt | 9 |
1 files changed, 9 insertions, 0 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 3a4324853..fcb3d746f 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 @@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.events.ItemClickEvent import at.hannibal2.skyhanni.events.LorenzActionBarEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.LorenzTickEvent +import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.events.PlaySoundEvent import at.hannibal2.skyhanni.events.RenderItemTipEvent import at.hannibal2.skyhanni.events.RenderObject @@ -170,6 +171,14 @@ class ItemAbilityCooldown { } @SubscribeEvent + fun onIslandChange(event: LorenzWorldChangeEvent) { + for (ability in ItemAbility.entries) { + ability.lastActivation = 0L + ability.specialColor = null + } + } + + @SubscribeEvent fun onActionBar(event: LorenzActionBarEvent) { if (!isEnabled()) return |