aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-26 22:53:12 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-26 22:53:12 +0100
commit9eae0b7a0a180d85deb23aa312c53fddeebf1951 (patch)
tree5a8d8a165a2827b17628d0e7840f615949a7543e /src/main/java/at
parent132633476381c7a0e6c5211837f9cff8171c3c3b (diff)
downloadskyhanni-9eae0b7a0a180d85deb23aa312c53fddeebf1951.tar.gz
skyhanni-9eae0b7a0a180d85deb23aa312c53fddeebf1951.tar.bz2
skyhanni-9eae0b7a0a180d85deb23aa312c53fddeebf1951.zip
hide fishing trackers after island switch
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt
index 027a4b6d0..a5f611827 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt
@@ -1,6 +1,7 @@
package at.hannibal2.skyhanni.features.fishing
import at.hannibal2.skyhanni.events.FishingBobberCastEvent
+import at.hannibal2.skyhanni.events.IslandChangeEvent
import at.hannibal2.skyhanni.events.ItemInHandChangeEvent
import at.hannibal2.skyhanni.events.SkillExpGainEvent
import at.hannibal2.skyhanni.features.fishing.tracker.FishingProfitTracker
@@ -63,6 +64,11 @@ object FishingAPI {
}
}
+ @SubscribeEvent
+ fun onIslandChange(event: IslandChangeEvent) {
+ lastActiveFishingTime = SimpleTimeMark.farPast()
+ }
+
fun hasFishingRodInHand() = InventoryUtils.itemInHandId.isFishingRod()
fun NEUInternalName.isFishingRod() = contains("ROD")