From 50c25b3f9995b62f3cb0bc42966beb2fe62a6091 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Fri, 23 Jun 2023 23:50:34 -0500 Subject: trying some new stuff, also commit cuz home now and can use pc --- src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main') 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 } -- cgit