aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-04 12:20:58 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-04 12:20:58 +0200
commitd7987b78c9896c9c2ac35a58490330818128c543 (patch)
tree0caa03dfd64352d8bb460d97475150c49f8a29f9
parent1a38f3d79d6cdbe90455191712fa71f0ac1aa7e6 (diff)
downloadskyhanni-d7987b78c9896c9c2ac35a58490330818128c543.tar.gz
skyhanni-d7987b78c9896c9c2ac35a58490330818128c543.tar.bz2
skyhanni-d7987b78c9896c9c2ac35a58490330818128c543.zip
Code cleanup
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt9
1 files changed, 7 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 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()
}