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()