aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-08-26 01:08:13 +0200
committernea <romangraef@gmail.com>2022-08-26 01:08:13 +0200
commit4c7bd601c4df4d03536e97e18e4b88d858330ad9 (patch)
tree328a90e5fc5a524b1c2cbba6dac60498ee2b8210 /src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt
parent9245c261f11f907b3dd23379d81f5b9f65e6e9bb (diff)
downloadfirmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.tar.gz
firmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.tar.bz2
firmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.zip
Translations and DBUS???? for some reason. also make the whole thing not buildable for anyone aside from me lol
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt')
-rw-r--r--src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt b/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt
index c515ff7..2c0b4ec 100644
--- a/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt
+++ b/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt
@@ -24,6 +24,8 @@ object RepoManager : ConfigHolder<RepoManager.Config>(serializer(), "repo", ::Co
var branch: String = "dangerous",
)
+ val currentDownloadedSha by RepoDownloadManager::latestSavedVersionHash
+
var recentlyFailedToUpdateItemList = false
val progressBar = ProgressBar("", null, 0).also {
@@ -72,6 +74,7 @@ object RepoManager : ConfigHolder<RepoManager.Config>(serializer(), "repo", ::Co
Minecraft.getInstance().player?.sendSystemMessage(
Component.literal("Failed to reload repository. This will result in some mod features not working.")
)
+ CottonHud.remove(progressBar)
exc.printStackTrace()
}
}