aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-07 22:33:53 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-07 22:33:53 +0100
commita9216df516f1e6bb23b9281d8a1c28f562f8e157 (patch)
tree10b82b6e5fb0c6d8d2688917f53965388ef056c4
parent204bef3f09e51c88b655e80faa13bb52357d0ff8 (diff)
downloadskyhanni-a9216df516f1e6bb23b9281d8a1c28f562f8e157.tar.gz
skyhanni-a9216df516f1e6bb23b9281d8a1c28f562f8e157.tar.bz2
skyhanni-a9216df516f1e6bb23b9281d8a1c28f562f8e157.zip
Show Powder Tracker immediately after joining the Crystal Hollows.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt
index be35e0e55..792f4a901 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mining/powdertracker/PowderTracker.kt
@@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.config.features.mining.PowderTrackerConfig.PowderDi
import at.hannibal2.skyhanni.data.IslandType
import at.hannibal2.skyhanni.events.ConfigLoadEvent
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.LorenzWorldChangeEvent
@@ -193,6 +194,13 @@ object PowderTracker {
}
}
+ @SubscribeEvent
+ fun onIslandChange(event: IslandChangeEvent) {
+ if (event.newIsland == IslandType.CRYSTAL_HOLLOWS) {
+ tracker.firstUpdate()
+ }
+ }
+
private fun formatDisplay(map: List<List<Any>>) = buildList<List<Any>> {
if (map.isEmpty()) return@buildList