aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authoringle <inglettronald@gmail.com>2022-11-05 16:43:34 -0500
committeringle <inglettronald@gmail.com>2022-11-05 16:43:34 -0500
commit90fc70a4d3942d15b38628397ac1e7e16fbfd337 (patch)
tree3d2efb63fef80be1f7623ef7994a5f7bb9a442f4 /src/main
parentc8dd376ff027606aab980a7da4049be61368a86c (diff)
downloadDulkirMod-90fc70a4d3942d15b38628397ac1e7e16fbfd337.tar.gz
DulkirMod-90fc70a4d3942d15b38628397ac1e7e16fbfd337.tar.bz2
DulkirMod-90fc70a4d3942d15b38628397ac1e7e16fbfd337.zip
= fix config text and throttle notification antispam
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/dulkirmod/DulkirMod.kt2
-rw-r--r--src/main/kotlin/dulkirmod/utils/Utils.kt9
2 files changed, 6 insertions, 5 deletions
diff --git a/src/main/kotlin/dulkirmod/DulkirMod.kt b/src/main/kotlin/dulkirmod/DulkirMod.kt
index 738f133..20b2eb3 100644
--- a/src/main/kotlin/dulkirmod/DulkirMod.kt
+++ b/src/main/kotlin/dulkirmod/DulkirMod.kt
@@ -114,7 +114,7 @@ class DulkirMod {
companion object {
const val MOD_ID = "dulkirmod"
const val MOD_NAME = "Dulkir Mod"
- const val MOD_VERSION = "1.0.8"
+ const val MOD_VERSION = "1.0.9.2"
const val CHAT_PREFIX = "§f<§3DulkirMod§f>"
val mc: Minecraft = Minecraft.getMinecraft()
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
}