aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-23 23:50:34 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-23 23:50:34 -0500
commit50c25b3f9995b62f3cb0bc42966beb2fe62a6091 (patch)
tree97d135a55de706174f99e91e8429902c82df3525 /src/main
parent5dd4c58fea97d5df8f18c099701b7034ae8939f5 (diff)
downloadDulkirMod-Fabric-50c25b3f9995b62f3cb0bc42966beb2fe62a6091.tar.gz
DulkirMod-Fabric-50c25b3f9995b62f3cb0bc42966beb2fe62a6091.tar.bz2
DulkirMod-Fabric-50c25b3f9995b62f3cb0bc42966beb2fe62a6091.zip
trying some new stuff, also commit cuz home now and can use pc
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt b/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt
index 8763741..8304bc3 100644
--- a/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt
@@ -21,6 +21,10 @@ object AbiPhoneDND {
if (!DulkirConfig.configOptions.abiPhoneDND) return
if (System.currentTimeMillis() - lastRing < 5000) {
// TODO: Make this not error out madge
+ if (event.sound == null) {
+ event.isCancelled = true
+ }
+
if (event.sound.id.path == "block.note_block.pling" && event.sound.volume == 0.69f && event.sound.pitch == 1.6666666f) {
event.isCancelled = true
}