From 2a3f1fa30cf9b513685dbe7c2f6606bcd76c2e27 Mon Sep 17 00:00:00 2001
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Date: Sat, 12 Jun 2021 20:35:03 -0700
Subject: [PATCH] Resolve run working directory from rootProject

---
 patches/server/0001-Setup-Gradle-project.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/patches/server/0001-Setup-Gradle-project.patch b/patches/server/0001-Setup-Gradle-project.patch
index 2bfeb3af87..b2c3b3a0e8 100644
--- a/patches/server/0001-Setup-Gradle-project.patch
+++ b/patches/server/0001-Setup-Gradle-project.patch
@@ -17,7 +17,7 @@ index 67fb370cad6924895a6b27052dbd5c1767e3f0c9..3e05459f27c4c5697ae65da504d67a6a
  /.project
 diff --git a/build.gradle.kts b/build.gradle.kts
 new file mode 100644
-index 0000000000000000000000000000000000000000..29564703bd1502269c04cd5fb3070b687ca51af5
+index 0000000000000000000000000000000000000000..21b97f37a4c4d35d80bc1c1b98f55bcfb8d21f20
 --- /dev/null
 +++ b/build.gradle.kts
 @@ -0,0 +1,121 @@
@@ -107,7 +107,7 @@ index 0000000000000000000000000000000000000000..29564703bd1502269c04cd5fb3070b68
 +fun TaskContainer.registerRunTask(name: String, block: JavaExec.() -> Unit): TaskProvider<JavaExec> =
 +    register<JavaExec>(name) {
 +        group = "Paper"
-+        workingDir = layout.projectDirectory.dir(
++        workingDir = rootProject.layout.projectDirectory.dir(
 +            providers.gradleProperty("runWorkDir").forUseAtConfigurationTime().orElse("run")
 +        ).get().asFile
 +        doFirst {