diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
5 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzTickEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzTickEvent.kt index 12b837da5..f319ca557 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/LorenzTickEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzTickEvent.kt @@ -4,5 +4,6 @@ class LorenzTickEvent(private val tick: Int) : LorenzEvent() { fun isMod(i: Int, offset: Int = 0) = (tick + offset) % i == 0 + @Deprecated("Use SecondPassedEvent instead", ReplaceWith("")) fun repeatSeconds(i: Int, offset: Int = 0) = isMod(i * 20, offset) } diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt index 8c6d7fdec..8f28038fa 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt @@ -391,7 +391,7 @@ object GhostCounter { } @SubscribeEvent - fun onTabUpdate(event: TabListUpdateEvent) { + fun onTabListUpdate(event: TabListUpdateEvent) { if (!isEnabled()) return for (line in event.tabList) { skillLevelPattern.matchMatcher(line) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt index 5380c4e5c..89404cbe0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt @@ -143,7 +143,7 @@ object PestAPI { } @SubscribeEvent - fun onTablistUpdate(event: TabListUpdateEvent) { + fun onTabListUpdate(event: TabListUpdateEvent) { if (!GardenAPI.inGarden()) return var previousLine = "" for (line in event.tabList) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListReader.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListReader.kt index 6fff7b69b..758c20110 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListReader.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListReader.kt @@ -50,7 +50,7 @@ object TabListReader { val renderColumns = mutableListOf<RenderColumn>() @SubscribeEvent - fun onTabUpdate(event: TabListUpdateEvent) { + fun onTabListUpdate(event: TabListUpdateEvent) { if (!LorenzUtils.inSkyBlock) return if (!config.enabled) return diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/VolcanoExplosivityDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/VolcanoExplosivityDisplay.kt index 107d244ec..120f8b914 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/nether/VolcanoExplosivityDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/nether/VolcanoExplosivityDisplay.kt @@ -27,7 +27,7 @@ class VolcanoExplosivityDisplay { private var display = "" @SubscribeEvent - fun onTick(event: TabListUpdateEvent) { + fun onTabListUpdate(event: TabListUpdateEvent) { if (!isEnabled()) return val text = event.tabList.nextAfter({ headerPattern.matches(it) }) ?: return statusPattern.matchMatcher(text) { |