From 761788518c4ef295cb9ec108e0bc10af0d7e2d3e Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Thu, 11 Jan 2024 06:21:56 -0500 Subject: use correct coroutine thing (#903) Using SkyHanniMod.coroutineScope instead of CoroutineScope(Dispatchers.Default) #903 --- .../at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/slayer') diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt index e1f837a7b..baf43b001 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt @@ -32,8 +32,6 @@ import at.hannibal2.skyhanni.utils.RenderUtils.exactPlayerEyeLocation import at.hannibal2.skyhanni.utils.SoundUtils import at.hannibal2.skyhanni.utils.SoundUtils.playSound import at.hannibal2.skyhanni.utils.toLorenzVec -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.delay import kotlinx.coroutines.launch import net.minecraft.client.Minecraft @@ -208,7 +206,7 @@ object VampireSlayerFeatures { } private fun playTwinclawsSound() { - CoroutineScope(Dispatchers.Default).launch { + SkyHanniMod.coroutineScope.launch { repeat(15) { delay(50) SoundUtils.createSound("random.orb", 0.5f).playSound() -- cgit