add property to control maximum game heap
Some checks failed
Publish to snapshot maven / build (push) Failing after 17s
Some checks failed
Publish to snapshot maven / build (push) Failing after 17s
This commit is contained in:
parent
44433be9b7
commit
062b8a0616
|
@ -46,6 +46,7 @@ object RunConfigGenerator {
|
|||
"Minecraft ${env.pascalName}",
|
||||
"org.ecorous.esnesnon.nonsense.loader.impl.launch.${env.id}.Nonsense${env.pascalName}",
|
||||
arrayOf(
|
||||
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
|
||||
"-Dnonsense.development=true",
|
||||
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
||||
"-Dlog4j.configurationFile=$log4jPath"
|
||||
|
|
|
@ -50,6 +50,7 @@ abstract class RunGameTask @Inject constructor(env: Env) : JavaExec() {
|
|||
).runtimeClasspath.filter { it.exists() })
|
||||
|
||||
jvmArguments.addAll(
|
||||
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
|
||||
"-Dnonsense.development=true",
|
||||
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
||||
"-Dlog4j.configurationFile=$log4jPath",
|
||||
|
|
Loading…
Reference in a new issue