diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-06 12:03:42 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-06 12:03:42 +0100 |
commit | 0d9ef97ee93c23f627af93e15363d392f1745e83 (patch) | |
tree | 89e5f6bc850be5a157fef3d28863638995f266c6 /src/main/java/at/hannibal2 | |
parent | 2401ee92eb0bfbcf389f71c21f68eda7f1660cfa (diff) | |
download | skyhanni-0d9ef97ee93c23f627af93e15363d392f1745e83.tar.gz skyhanni-0d9ef97ee93c23f627af93e15363d392f1745e83.tar.bz2 skyhanni-0d9ef97ee93c23f627af93e15363d392f1745e83.zip |
Show vermin tracker immediately after joining the rift.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt index 55ce4886e..2b371d259 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/westvillage/VerminTracker.kt @@ -1,7 +1,9 @@ package at.hannibal2.skyhanni.features.rift.area.westvillage +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent +import at.hannibal2.skyhanni.events.IslandChangeEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.features.rift.RiftAPI @@ -149,6 +151,13 @@ object VerminTracker { tracker.renderDisplay(config.position) } + @SubscribeEvent + fun onIslandChange(event: IslandChangeEvent) { + if (event.newIsland == IslandType.THE_RIFT) { + tracker.firstUpdate() + } + } + fun resetCommand(args: Array<String>) { tracker.resetCommand(args, "shresetvermintracker") } |