diff --git a/src/main/kotlin/com/mineinabyss/launchy/logic/LaunchyState.kt b/src/main/kotlin/com/mineinabyss/launchy/logic/LaunchyState.kt index 1dc3a59..b9b6580 100644 --- a/src/main/kotlin/com/mineinabyss/launchy/logic/LaunchyState.kt +++ b/src/main/kotlin/com/mineinabyss/launchy/logic/LaunchyState.kt @@ -122,8 +122,13 @@ class LaunchyState( } for (mod in queuedDeletions) { launch(Dispatchers.IO) { - mod.file.deleteIfExists() - _deleted++ + try { + mod.file.deleteIfExists() + } catch (e: FileSystemException) { + return@launch + } finally { + _deleted++ + } } } }