diff --git a/src/main/kotlin/initGodotExec.kt b/src/main/kotlin/initGodotExec.kt index 6ba225f..0e18d51 100644 --- a/src/main/kotlin/initGodotExec.kt +++ b/src/main/kotlin/initGodotExec.kt @@ -10,7 +10,7 @@ import org.gradle.process.ExecSpec * */ internal fun initGodotExec(project: Project, exec: ExecSpec){ with(exec) { - val extension = project.extensions.getByName("godle") as GodleExtension + val extension = project.extensions.getByType(GodleExtension::class.java) val storePath = getGodotFolder(extension.version.get()) val godotExecutable = storePath + "/" + extension.version.get().getBinaryPath()