aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-03 20:02:25 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-03 20:02:25 +0200
commitb19e2ed181ef8618d71ad33960befceff510cfa9 (patch)
treef094fcd94241277364841ec8a11bb4b984908510 /src
parent1d051f3e1e35489989ca109f1493154641c23068 (diff)
downloadskyhanni-b19e2ed181ef8618d71ad33960befceff510cfa9.tar.gz
skyhanni-b19e2ed181ef8618d71ad33960befceff510cfa9.tar.bz2
skyhanni-b19e2ed181ef8618d71ad33960befceff510cfa9.zip
code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzTickEvent.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/combat/ghostcounter/GhostCounter.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListReader.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/VolcanoExplosivityDisplay.kt2
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) {