From 178efa2903b1aa5265fa416bdc9bda92d4d4e3e8 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 23 Apr 2024 14:39:36 -0700 Subject: [PATCH] Don't use defaultToolchain method for run tasks --- patches/server/Setup-Gradle-project.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Setup-Gradle-project.patch b/patches/server/Setup-Gradle-project.patch index 56ab8f4ab6..c8a39c1fdd 100644 --- a/patches/server/Setup-Gradle-project.patch +++ b/patches/server/Setup-Gradle-project.patch @@ -109,7 +109,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + workingDir = rootProject.layout.projectDirectory + .dir(providers.gradleProperty("paper.runWorkDir").getOrElse("run")) + .asFile -+ javaLauncher.set(project.javaToolchains.defaultJavaLauncher(project)) ++ javaLauncher.set(project.javaToolchains.launcherFor(project.java.toolchain)) + + if (rootProject.childProjects["test-plugin"] != null) { + val testPluginJar = rootProject.project(":test-plugin").tasks.jar.flatMap { it.archiveFile }