From e9f9e7c8b8d5fe3c0a8560a493fdd52f54088a28 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 28 Apr 2024 17:30:55 +0200 Subject: code cleanup --- .../java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit