aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/combat
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-10-06 10:54:42 +0200
committerGitHub <noreply@github.com>2024-10-06 10:54:42 +0200
commitdf1bff9338410828ec566f28483dee0938463165 (patch)
treeb6b9055464801cacc78ee36191276813655053e7 /src/main/java/at/hannibal2/skyhanni/features/combat
parent86c3700cfd11ba53da18bff1987c69d19de17b81 (diff)
downloadskyhanni-df1bff9338410828ec566f28483dee0938463165.tar.gz
skyhanni-df1bff9338410828ec566f28483dee0938463165.tar.bz2
skyhanni-df1bff9338410828ec566f28483dee0938463165.zip
Improvement: Working on scoreboard errors again (#2672)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/combat')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/combat/SpidersDenAPI.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/combat/SpidersDenAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/combat/SpidersDenAPI.kt
index 7986c55e9..af1dd8430 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/combat/SpidersDenAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/combat/SpidersDenAPI.kt
@@ -1,12 +1,11 @@
package at.hannibal2.skyhanni.features.combat
-import at.hannibal2.skyhanni.features.gui.customscoreboard.CustomScoreboard
+import at.hannibal2.skyhanni.data.ScoreboardData
import at.hannibal2.skyhanni.features.gui.customscoreboard.ScoreboardPattern
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.utils.RegexUtils.matches
@SkyHanniModule
object SpidersDenAPI {
- private fun getSbLines(): List<String> = CustomScoreboard.activeLines
- fun isAtTopOfNest(): Boolean = getSbLines().any { ScoreboardPattern.broodmotherPattern.matches(it) }
+ fun isAtTopOfNest(): Boolean = ScoreboardData.sidebarLinesFormatted.any { ScoreboardPattern.broodmotherPattern.matches(it) }
}