aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/chat
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-02-23 02:30:32 -0600
committeringlettronald <inglettronald@gmail.com>2023-02-23 02:30:32 -0600
commitf0c36d2586a46dbe48d745866fbd62e74aa466c6 (patch)
tree6b155148c7d6b9bb3f0c584ff8eee91cf695c63b /src/main/kotlin/dulkirmod/features/chat
parent7df778d6ac01a6d350608a5962b9344493444ebc (diff)
downloadDulkirMod-f0c36d2586a46dbe48d745866fbd62e74aa466c6.tar.gz
DulkirMod-f0c36d2586a46dbe48d745866fbd62e74aa466c6.tar.bz2
DulkirMod-f0c36d2586a46dbe48d745866fbd62e74aa466c6.zip
Major tablist-related refactor and Garden notification stuff
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/chat')
-rw-r--r--src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt b/src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt
index f6a90eb..fbd2437 100644
--- a/src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt
+++ b/src/main/kotlin/dulkirmod/features/chat/ThrottleNotif.kt
@@ -2,15 +2,15 @@ package dulkirmod.features.chat
import dulkirmod.DulkirMod
import dulkirmod.config.Config
+import dulkirmod.utils.TabListUtils
import dulkirmod.utils.TextUtils
-import dulkirmod.utils.Utils
import net.minecraftforge.client.event.ClientChatReceivedEvent
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
- && Utils.isInDungeons()
+ && TabListUtils.isInDungeons
) {
event.isCanceled = true
if (!Config.throttleNotifierSpam && System.currentTimeMillis() - lastThrottle > 8000) {