From 90fc70a4d3942d15b38628397ac1e7e16fbfd337 Mon Sep 17 00:00:00 2001 From: ingle Date: Sat, 5 Nov 2022 16:43:34 -0500 Subject: = fix config text and throttle notification antispam --- src/main/kotlin/dulkirmod/DulkirMod.kt | 2 +- src/main/kotlin/dulkirmod/utils/Utils.kt | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/main') 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 = TabListUtils.fetchTabEntires().map { + it.displayName?.unformattedText + } + for (l in scoreboardList) { + if (l == " Dungeon Stats") return true } return false } -- cgit