diff options
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/chat')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/chat/DungeonKeyDisplay.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/dulkirmod/features/chat/DungeonKeyDisplay.kt b/src/main/kotlin/dulkirmod/features/chat/DungeonKeyDisplay.kt index 2ba01f0..d31de56 100644 --- a/src/main/kotlin/dulkirmod/features/chat/DungeonKeyDisplay.kt +++ b/src/main/kotlin/dulkirmod/features/chat/DungeonKeyDisplay.kt @@ -10,7 +10,7 @@ object DungeonKeyDisplay { private val altOpenMessage = "The BLOOD DOOR has been opened!".toRegex() var hasKey = false; fun handle(stringUnformatted: String) { - if (!TabListUtils.isInDungeons) { + if (TabListUtils.area != "Dungeon") { hasKey = false return } diff --git a/src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt b/src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt index 736ee43..a6697ef 100644 --- a/src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt +++ b/src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt @@ -10,7 +10,7 @@ object ThrottleNotif { private var lastThrottle: Long = 0 fun handle(event: ClientChatReceivedEvent, unformatted: String) { if (unformatted == "This menu has been throttled! Please slow down..." && DulkirMod.config.throttleNotifier - && TabListUtils.isInDungeons + && TabListUtils.area == "Dungeon" ) { event.isCanceled = true if (!DulkirConfig.throttleNotifierSpam && System.currentTimeMillis() - lastThrottle > 8000) { |