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/features/misc | |
| 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/features/misc')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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( |
