From 69102539095e481ffb9cebff755d322311cb40a1 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Mon, 27 Feb 2023 16:30:33 -0800 Subject: [PATCH] fix runServer tasks --- patches/server/Setup-Gradle-project.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/patches/server/Setup-Gradle-project.patch b/patches/server/Setup-Gradle-project.patch index 46defbc189..d495c5d84d 100644 --- a/patches/server/Setup-Gradle-project.patch +++ b/patches/server/Setup-Gradle-project.patch @@ -138,9 +138,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + + val memoryGb = providers.gradleProperty("paper.runMemoryGb").getOrElse("2") -+ val modifiedJvmArgs = jvmArgs ?: arrayListOf() -+ modifiedJvmArgs.addAll(listOf("-Xms${memoryGb}G", "-Xmx${memoryGb}G")) -+ jvmArgs = modifiedJvmArgs ++ minHeapSize = "${memoryGb}G" ++ maxHeapSize = "${memoryGb}G" + + doFirst { + workingDir.mkdirs()