diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-02-20 00:59:39 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-19 14:59:39 +0100 |
| commit | c19a902d2ef4aa93ff2d3cc93230f067e9315b71 (patch) | |
| tree | 588e197fa91adc383223948d003db565b5e9f5a5 /src/main/java/at/hannibal2/skyhanni/features/rift | |
| parent | ab769839034888bc10ddfb2ef815be2400d64641 (diff) | |
| download | skyhanni-c19a902d2ef4aa93ff2d3cc93230f067e9315b71.tar.gz skyhanni-c19a902d2ef4aa93ff2d3cc93230f067e9315b71.tar.bz2 skyhanni-c19a902d2ef4aa93ff2d3cc93230f067e9315b71.zip | |
Created ActionBarUpdateEvent and used it. #977
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/rift')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/RiftTimer.kt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/RiftTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/RiftTimer.kt index e7f8ad5a1..c995fa405 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/RiftTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/RiftTimer.kt @@ -1,8 +1,8 @@ package at.hannibal2.skyhanni.features.rift.everywhere +import at.hannibal2.skyhanni.events.ActionBarUpdateEvent import at.hannibal2.skyhanni.events.ConfigLoadEvent import at.hannibal2.skyhanni.events.GuiRenderEvent -import at.hannibal2.skyhanni.events.LorenzActionBarEvent import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.features.rift.RiftAPI import at.hannibal2.skyhanni.utils.ConditionalUtils @@ -36,10 +36,11 @@ class RiftTimer { currentTime = 0 } + //todo use ActionBarValueUpdateEvent @SubscribeEvent - fun onActionBar(event: LorenzActionBarEvent) { + fun onActionBarUpdate(event: ActionBarUpdateEvent) { if (!isEnabled()) return - for (entry in event.message.split(" ")) { + for (entry in event.actionBar.split(" ")) { timePattern.matchMatcher(entry) { val color = group("color") val newTime = getTime(group("time")) |
