Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit a58eb50

Browse files
committed
Fix update check toast
1 parent a7641bc commit a58eb50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/xyz/deathsgun/modmanager/update/UpdateManager.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ class UpdateManager {
8888
checkForUpdates(metadata, configIds)
8989
}
9090
}.awaitAll()
91+
finishedUpdateCheck = true
92+
if (MinecraftClient.getInstance()?.currentScreen == null) {
93+
return@runBlocking
94+
}
9195
MinecraftClient.getInstance().toastManager.add(
9296
SystemToast(
9397
SystemToast.Type.TUTORIAL_HINT,

0 commit comments

Comments
 (0)