From 2c022844e58c4a62b09a287f6e71cfb8a3ab1922 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Thu, 29 Jun 2023 07:21:41 -0500 Subject: imports/cleanups --- src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/main/kotlin/com/dulkirfabric/features') diff --git a/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt b/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt index 8304bc3..2172c4b 100644 --- a/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt +++ b/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt @@ -2,13 +2,10 @@ package com.dulkirfabric.features.chat import com.dulkirfabric.config.DulkirConfig import com.dulkirfabric.events.ChatReceivedEvent -import com.dulkirfabric.events.OverlayReceivedEvent import com.dulkirfabric.events.PlaySoundEvent import com.dulkirfabric.util.TextUtils import com.dulkirfabric.util.TextUtils.unformattedString import meteordevelopment.orbit.EventHandler -import net.minecraft.client.sound.Sound -import net.minecraft.text.Text object AbiPhoneDND { @@ -20,11 +17,6 @@ object AbiPhoneDND { fun onSound(event: PlaySoundEvent) { 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