diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-12 12:57:58 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-12 12:57:58 +0200 |
commit | 852c74feb82e55d9b08424887271399c6e038e64 (patch) | |
tree | c196eb557d7ab91dda54ad72a8da961ed775d784 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | de15c129f5d7ec6823d9e2a1c93bcbfd4fee73fb (diff) | |
download | skyhanni-852c74feb82e55d9b08424887271399c6e038e64.tar.gz skyhanni-852c74feb82e55d9b08424887271399c6e038e64.tar.bz2 skyhanni-852c74feb82e55d9b08424887271399c6e038e64.zip |
location check and fixes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt index 401d23733..8d6947ef7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestProfitTracker.kt @@ -1,7 +1,9 @@ package at.hannibal2.skyhanni.features.garden.pests import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.events.GuiRenderEvent +import at.hannibal2.skyhanni.events.IslandChangeEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.PurseChangeCause import at.hannibal2.skyhanni.events.PurseChangeEvent @@ -130,6 +132,13 @@ object PestProfitTracker { } } + @SubscribeEvent + fun onIslandChange(event: IslandChangeEvent) { + if (event.newIsland == IslandType.GARDEN) { + tracker.firstUpdate() + } + } + fun resetCommand(args: Array<String>) { tracker.resetCommand(args, "shresetpestprofittracker") } |