diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-01-11 06:21:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 12:21:56 +0100 |
commit | 761788518c4ef295cb9ec108e0bc10af0d7e2d3e (patch) | |
tree | 5be1821e82b8935b99daa62e509559de0ea17ac8 /src/main/java/at/hannibal2/skyhanni/features/slayer | |
parent | 90522ec07249ecca238083d66f17c61ccdae9481 (diff) | |
download | skyhanni-761788518c4ef295cb9ec108e0bc10af0d7e2d3e.tar.gz skyhanni-761788518c4ef295cb9ec108e0bc10af0d7e2d3e.tar.bz2 skyhanni-761788518c4ef295cb9ec108e0bc10af0d7e2d3e.zip |
use correct coroutine thing (#903)
Using SkyHanniMod.coroutineScope instead of CoroutineScope(Dispatchers.Default) #903
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/slayer')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/slayer/VampireSlayerFeatures.kt | 4 |
1 files changed, 1 insertions, 3 deletions
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() |