diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-09-08 07:03:51 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 23:03:51 +0200 |
commit | d09480c3d272f270fb1b45c51bc3540b5416c09a (patch) | |
tree | 0a30b107c3cddb2bcfa80cb5318ef621fe3f8d5c /src/main/java/at/hannibal2/skyhanni/data/repo | |
parent | 88416edd2f5a50e1ba88e9adb574e3c60c49abca (diff) | |
download | skyhanni-d09480c3d272f270fb1b45c51bc3540b5416c09a.tar.gz skyhanni-d09480c3d272f270fb1b45c51bc3540b5416c09a.tar.bz2 skyhanni-d09480c3d272f270fb1b45c51bc3540b5416c09a.zip |
Backend: Use on DelayedRun to add scheduled tasks (#2462)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/repo')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt index 79d329f22..551f44699 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt @@ -7,12 +7,12 @@ import at.hannibal2.skyhanni.events.NeuRepositoryReloadEvent import at.hannibal2.skyhanni.events.RepositoryReloadEvent import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ChatUtils +import at.hannibal2.skyhanni.utils.DelayedRun import at.hannibal2.skyhanni.utils.SimpleTimeMark import at.hannibal2.skyhanni.utils.chat.Text import at.hannibal2.skyhanni.utils.chat.Text.asComponent import at.hannibal2.skyhanni.utils.chat.Text.send import com.google.gson.JsonObject -import net.minecraft.client.Minecraft import net.minecraft.util.IChatComponent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import org.apache.commons.io.FileUtils @@ -169,7 +169,7 @@ class RepoManager(private val configLocation: File) { val comp = CompletableFuture<Void?>() if (!atomicShouldManuallyReload.get()) return comp ErrorManager.resetCache() - Minecraft.getMinecraft().addScheduledTask { + DelayedRun.onThread.execute { error = false successfulConstants.clear() unsuccessfulConstants.clear() |