From a9216df516f1e6bb23b9281d8a1c28f562f8e157 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 7 Jan 2024 22:33:53 +0100 Subject: Show Powder Tracker immediately after joining the Crystal Hollows. --- .../skyhanni/features/mining/powdertracker/PowderTracker.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java') 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>) = buildList> { if (map.isEmpty()) return@buildList -- cgit