From ba356fae1a72cdc644ea2c6efdc58340eef74145 Mon Sep 17 00:00:00 2001
From: sychic <47618543+Sychic@users.noreply.github.com>
Date: Wed, 8 Nov 2023 13:33:56 -0500
Subject: [PATCH] Fix some code being broken

---
 src/main/kotlin/gg/skytils/skytilsmod/core/DataFetcher.kt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/kotlin/gg/skytils/skytilsmod/core/DataFetcher.kt b/src/main/kotlin/gg/skytils/skytilsmod/core/DataFetcher.kt
index bf7f7d1fd..35e7e55c7 100644
--- a/src/main/kotlin/gg/skytils/skytilsmod/core/DataFetcher.kt
+++ b/src/main/kotlin/gg/skytils/skytilsmod/core/DataFetcher.kt
@@ -40,6 +40,7 @@ import gg.skytils.skytilsmod.utils.*
 import io.ktor.client.call.*
 import io.ktor.client.request.*
 import io.ktor.client.statement.*
+import kotlinx.coroutines.Job
 import kotlinx.coroutines.launch
 import kotlinx.serialization.SerialName
 import kotlinx.serialization.Serializable
@@ -48,8 +49,8 @@ import net.minecraft.util.BlockPos
 import kotlin.concurrent.fixedRateTimer
 
 object DataFetcher {
-    private fun loadData() {
-        Skytils.IO.launch {
+    private fun loadData(): Job {
+        return Skytils.IO.launch {
             try {
                 client.get("${dataUrl}constants/domain.txt").bodyAsText().apply {
                     if (isNotBlank()) {
@@ -177,9 +178,8 @@ object DataFetcher {
     }
 
     @JvmStatic
-    fun reloadData() {
+    fun reloadData() =
         loadData()
-    }
 
     internal fun preload() {}