Remove the hardcoded "M" in the JVM memory allocation argument.

This commit is contained in:
MT224244 2020-08-19 12:08:12 +09:00
parent ef45a1d741
commit 53f20d54d3
2 changed files with 4 additions and 4 deletions

View file

@ -38,8 +38,8 @@ let opts = {
type: "release"
},
memory: {
max: "6000",
min: "4000"
max: "6G",
min: "4G"
}
}

View file

@ -92,8 +92,8 @@ class MCLCore extends EventEmitter {
'-Dfml.ignorePatchDiscrepancies=true',
'-Dfml.ignoreInvalidMinecraftCertificates=true',
`-Djava.library.path=${nativePath}`,
`-Xmx${this.options.memory.max}M`,
`-Xms${this.options.memory.min}M`
`-Xmx${this.options.memory.max}`,
`-Xms${this.options.memory.min}`
]
if (this.handler.getOS() === 'osx') {
if (parseInt(versionFile.id.split('.')[1]) > 12) jvm.push(await this.handler.getJVM())