From 4c7bd601c4df4d03536e97e18e4b88d858330ad9 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 26 Aug 2022 01:08:13 +0200 Subject: Translations and DBUS???? for some reason. also make the whole thing not buildable for anyone aside from me lol --- src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt') 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(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(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() } } -- cgit