From f2a0dd9d647bc57bab91eaac0cdf515a84ebb1be Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 13 Feb 2024 17:56:59 +0100 Subject: Fix crash in installMinecraft --- installMinecraft.init.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installMinecraft.init.gradle.kts b/installMinecraft.init.gradle.kts index a61df85..dd052e4 100644 --- a/installMinecraft.init.gradle.kts +++ b/installMinecraft.init.gradle.kts @@ -27,7 +27,7 @@ allprojects { val toInstall = listOf("remapJar", "shadowJar", "jar").mapNotNull { tasks.findByName(it) }.filterIsInstance().firstOrNull() - val targetDirectory = File(project.findProperty("minecraft.modfolder")!!) + val targetDirectory = File(project.findProperty("minecraft.modfolder") as String) if (toInstall != null) { tasks.create("installToMinecraft") { dependsOn(toInstall) -- cgit