mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
fix runServer tasks
This commit is contained in:
parent
dbe5184584
commit
6910253909
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue