From d7987b78c9896c9c2ac35a58490330818128c543 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 4 Jul 2023 12:20:58 +0200 Subject: Code cleanup --- .../at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') 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 e5f6d9568..6da0ce94b 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 @@ -36,7 +36,7 @@ object UpdateManager { @SubscribeEvent fun onConfigLoad(event: ConfigLoadEvent) { SkyHanniMod.feature.about.updateStream.onToggle { - reset() + reset() } } @@ -91,7 +91,11 @@ object UpdateManager { potentialUpdate = it if (it.isUpdateAvailable) { updateState = UpdateState.AVAILABLE - LorenzUtils.clickableChat("§e[SkyHanni] §aSkyhanni found a new update: ${it.update.versionName}. Go check §b/sh download update §afor more info.", "sh") + LorenzUtils.clickableChat( + "§e[SkyHanni] §aSkyhanni found a new update: ${it.update.versionName}. " + + "Go check §b/sh download update §afor more info.", + "sh" + ) } }, MinecraftExecutor.OnThread) } @@ -117,6 +121,7 @@ object UpdateManager { CurrentVersion.ofTag(SkyHanniMod.version), SkyHanniMod.MODID, ) + init { context.cleanup() } -- cgit