diff options
-rw-r--r-- | build.gradle.kts | 2 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/DulkirMod.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/utils/Utils.kt | 9 |
3 files changed, 7 insertions, 6 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index f40a410..52ffee2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ plugins { } group = "com.example.archloomtemplate" -version = "1.0.8" +version = "1.0.9.2" // Toolchains: java { 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 } |