From e098482faafe1149731e5068202668bb370ffca7 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Mon, 1 Apr 2024 01:47:15 +0200 Subject: Bump Kotlin version [no changelog] --- src/main/kotlin/moe/nea/firmament/Firmament.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/main/kotlin/moe/nea/firmament/Firmament.kt b/src/main/kotlin/moe/nea/firmament/Firmament.kt index 5fd9f60..a0549fd 100644 --- a/src/main/kotlin/moe/nea/firmament/Firmament.kt +++ b/src/main/kotlin/moe/nea/firmament/Firmament.kt @@ -34,7 +34,6 @@ import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Job import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.plus -import kotlinx.coroutines.runBlocking import kotlinx.serialization.json.Json import kotlin.coroutines.EmptyCoroutineContext import net.minecraft.command.CommandRegistryAccess @@ -134,10 +133,8 @@ object Firmament { HypixelStaticData.spawnDataCollectionLoop() ClientCommandRegistrationCallback.EVENT.register(this::registerCommands) ClientLifecycleEvents.CLIENT_STOPPING.register(ClientLifecycleEvents.ClientStopping { - runBlocking { - logger.info("Shutting down NEU coroutines") - globalJob.cancel() - } + logger.info("Shutting down Firmament coroutines") + globalJob.cancel() }) registerFirmamentEvents() ItemTooltipCallback.EVENT.register { a, b, c -> -- cgit