aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dulkirmod/utils')
-rw-r--r--src/main/kotlin/dulkirmod/utils/Utils.kt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/kotlin/dulkirmod/utils/Utils.kt b/src/main/kotlin/dulkirmod/utils/Utils.kt
index 731778f..fcc8de0 100644
--- a/src/main/kotlin/dulkirmod/utils/Utils.kt
+++ b/src/main/kotlin/dulkirmod/utils/Utils.kt
@@ -70,10 +70,11 @@ object Utils {
}
fun isInDungeons(): Boolean {
- val lines = ScoreBoardUtils.getLines()
- for (l in lines) {
- if (l.contains("Catac\uD83C\uDF6DĀ§combs"))
- return true
+ val scoreboardList: List<String?> = TabListUtils.fetchTabEntires().map {
+ it.displayName?.unformattedText
+ }
+ for (l in scoreboardList) {
+ if (l == " Dungeon Stats") return true
}
return false
}