diff options
author | ingle <inglettronald@gmail.com> | 2022-11-28 10:14:44 -0600 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-11-28 10:14:44 -0600 |
commit | 15b61517c59f8aa8135af82d6814739ad5da76b3 (patch) | |
tree | 19a13669ba1714cf9f763d632fafcfc6382eec54 /src/main/kotlin/dulkirmod/features/chat | |
parent | 7df387ec0f015fc7b8179131f17a107be4d77f04 (diff) | |
download | DulkirMod-15b61517c59f8aa8135af82d6814739ad5da76b3.tar.gz DulkirMod-15b61517c59f8aa8135af82d6814739ad5da76b3.tar.bz2 DulkirMod-15b61517c59f8aa8135af82d6814739ad5da76b3.zip |
- 1.1.3
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/chat')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt b/src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt index d2e0a69..f0a5cb0 100644 --- a/src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt +++ b/src/main/kotlin/dulkirmod/features/chat/AbiphoneDND.kt @@ -18,6 +18,7 @@ class AbiphoneDND { if (!Config.abiDND) return if (System.currentTimeMillis() - lastRing < 5000) { if (event.name == "note.pling" && event.sound.volume == 0.69f && event.sound.pitch == 1.6666666f) { + // This throws an error but still blocks the sound. Not a great solution, but it works for now event.isCanceled = true } } @@ -47,6 +48,5 @@ class AbiphoneDND { event.isCanceled = true; } } - } }
\ No newline at end of file |