aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-28 17:30:55 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-28 17:30:55 +0200
commite9f9e7c8b8d5fe3c0a8560a493fdd52f54088a28 (patch)
tree424a1a9bfdce83aec8e66d4f88d381fb19ec9721 /src/main/java/at
parentc8d4beac252f66a4988a71cdc8aba60207252528 (diff)
downloadskyhanni-e9f9e7c8b8d5fe3c0a8560a493fdd52f54088a28.tar.gz
skyhanni-e9f9e7c8b8d5fe3c0a8560a493fdd52f54088a28.tar.bz2
skyhanni-e9f9e7c8b8d5fe3c0a8560a493fdd52f54088a28.zip
code cleanup
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt4
1 files changed, 2 insertions, 2 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 44fa625e8..685a411b1 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
@@ -82,7 +82,7 @@ object UpdateManager {
return
}
logger.log("Starting update check")
- val currentStream = SkyHanniMod.feature.about.updateStream.get()
+ val currentStream = config.updateStream.get()
if (currentStream != UpdateStream.BETA && (updateStream == UpdateStream.BETA || isCurrentlyBeta())) {
config.updateStream = Property.of(UpdateStream.BETA)
}
@@ -103,7 +103,7 @@ object UpdateManager {
ChatUtils.chatAndOpenConfig(
"§aSkyHanni found a new update: ${it.update.versionName}. " +
"Check §b/sh download update §afor more info.",
- SkyHanniMod.feature.about::autoUpdates
+ config::autoUpdates
)
}
} else if (forceDownload) {