diff --git a/multimc/installer/src/main/kotlin/voodoo/multimc/Installer.kt b/multimc/installer/src/main/kotlin/voodoo/multimc/Installer.kt index 58df6a24..dd8b00d0 100644 --- a/multimc/installer/src/main/kotlin/voodoo/multimc/Installer.kt +++ b/multimc/installer/src/main/kotlin/voodoo/multimc/Installer.kt @@ -42,9 +42,10 @@ object Installer : KLogging() { private suspend fun selfupdate(instanceDir: File, installerUrl: String, phase: Phase): File? { logger.info { "installer url from modpack: $installerUrl" } val voodooFolder = instanceDir.resolve(".voodoo").apply { mkdirs() } - voodooFolder.listFiles().forEach { - it.delete() - } + // TODO: cleanup old files smarter +// voodooFolder.listFiles().forEach { +// it.delete() +// } val toDeleteFile = voodooFolder.resolve("to-delete.txt") toDeleteFile.parentFile.mkdirs() val currentJarFile = File(Installer::class.java.protectionDomain.codeSource.location.toURI())