Add the ability to set Minecraft's memory JVM argument in gradle.properties

This commit is contained in:
James Seibel
2023-09-13 18:53:23 -05:00
parent 84028f78b8
commit b38a8d5e62
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ processResources {
runClient {
dependsOn(copyCoreResources)
dependsOn(copyCommonLoaderResources)
jvmArgs "-XX:-OmitStackTraceInFastThrow"
jvmArgs([ "-XX:-OmitStackTraceInFastThrow", minecraftMemoryJavaArg ])
finalizedBy(deleteResources)
}
+1 -1
View File
@@ -36,7 +36,7 @@ loom {
setConfigName("Forge Client")
ideConfigGenerated(true)
runDir("run")
vmArg("-XX:-OmitStackTraceInFastThrow")
vmArgs("-XX:-OmitStackTraceInFastThrow", minecraftMemoryJavaArg)
}
server {
server()
+3
View File
@@ -44,3 +44,6 @@ versionStr=
# This defines what MC version Intellij will use for the preprocessor
# and what version is used automatically by build and run commands
mcVer=1.20.1
# Defines the maximum amount of memory Minecraft is allowed when run in a developement environment
minecraftMemoryJavaArg="-Xmx4G"