aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <nea@nea.moe>2023-06-24 18:14:44 +0200
committerGitHub <noreply@github.com>2023-06-24 18:14:44 +0200
commit72f51afe202e8d3ddef85ca3801809b0ee463893 (patch)
treede00c72555289f1f4aa803c2b7e98f8cad69122f
parent3e124fe2283d6087c5700fefbbc0ddcd39d5b18d (diff)
downloadskyhanni-72f51afe202e8d3ddef85ca3801809b0ee463893.tar.gz
skyhanni-72f51afe202e8d3ddef85ca3801809b0ee463893.tar.bz2
skyhanni-72f51afe202e8d3ddef85ca3801809b0ee463893.zip
Merge pull request #255
* Remove old update data after each update
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt5
1 files changed, 4 insertions, 1 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 3dbba1cfb..9e998514c 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
@@ -117,6 +117,9 @@ object UpdateManager {
CurrentVersion.ofTag(SkyHanniMod.version),
SkyHanniMod.MODID,
)
+ init {
+ context.cleanup()
+ }
enum class UpdateState {
AVAILABLE,
@@ -126,4 +129,4 @@ object UpdateManager {
}
var potentialUpdate: PotentialUpdate? = null
-} \ No newline at end of file
+}