aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-23 02:58:12 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-23 02:58:12 +0100
commit16cf25f52fcfe6666d6dea09cf67b2871cfb3e07 (patch)
treeb5e7ed669eae2483ae1dd48d3f6fce891b78caf7 /src/main/java
parent6707ddf24bae7a1063c16d96f7093190f0effd40 (diff)
downloadskyhanni-16cf25f52fcfe6666d6dea09cf67b2871cfb3e07.tar.gz
skyhanni-16cf25f52fcfe6666d6dea09cf67b2871cfb3e07.tar.bz2
skyhanni-16cf25f52fcfe6666d6dea09cf67b2871cfb3e07.zip
Fixed armor drop tracker not instantly visible.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/ArmorDropTracker.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/ArmorDropTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/ArmorDropTracker.kt
index f3fac8d2d..64b4c12ce 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/ArmorDropTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/ArmorDropTracker.kt
@@ -1,9 +1,11 @@
package at.hannibal2.skyhanni.features.garden.farming
import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
+import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.data.jsonobjects.repo.ArmorDropsJson
import at.hannibal2.skyhanni.data.jsonobjects.repo.ArmorDropsJson.DropInfo
import at.hannibal2.skyhanni.events.GuiRenderEvent
+import at.hannibal2.skyhanni.events.IslandChangeEvent
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.events.LorenzTickEvent
import at.hannibal2.skyhanni.events.PreProfileSwitchEvent
@@ -89,6 +91,13 @@ object ArmorDropTracker {
}
@SubscribeEvent
+ fun onIslandChange(event: IslandChangeEvent) {
+ if (event.newIsland == IslandType.GARDEN) {
+ tracker.firstUpdate()
+ }
+ }
+
+ @SubscribeEvent
fun onTick(event: LorenzTickEvent) {
if (!GardenAPI.inGarden()) return
if (!config.enabled) return