From d09480c3d272f270fb1b45c51bc3540b5416c09a Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 8 Sep 2024 07:03:51 +1000 Subject: Backend: Use on DelayedRun to add scheduled tasks (#2462) --- .../at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt index fae931ff2..040b6741a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt @@ -7,10 +7,10 @@ import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.ConditionalUtils.onToggle +import at.hannibal2.skyhanni.utils.DelayedRun import at.hannibal2.skyhanni.utils.LorenzLogger import com.google.gson.JsonElement import io.github.moulberry.notenoughupdates.util.ApiUtil -import io.github.moulberry.notenoughupdates.util.MinecraftExecutor import io.github.notenoughupdates.moulconfig.observer.Property import io.github.notenoughupdates.moulconfig.processor.MoulConfigProcessor import moe.nea.libautoupdate.CurrentVersion @@ -113,7 +113,7 @@ object UpdateManager { } else if (forceDownload) { ChatUtils.chat("§aSkyHanni didn't find a new update.") } - }, MinecraftExecutor.OnThread) + }, DelayedRun.onThread) } fun queueUpdate() { @@ -130,7 +130,7 @@ object UpdateManager { potentialUpdate!!.executePreparedUpdate() ChatUtils.chat("Download of update complete. ") ChatUtils.chat("§aThe update will be installed after your next restart.") - }, MinecraftExecutor.OnThread) + }, DelayedRun.onThread) } private val context = UpdateContext( -- cgit