mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-05 21:23:59 +03:00
Remove the hardcoded "M" in the JVM memory allocation argument.
This commit is contained in:
parent
ef45a1d741
commit
53f20d54d3
2 changed files with 4 additions and 4 deletions
|
@ -38,8 +38,8 @@ let opts = {
|
|||
type: "release"
|
||||
},
|
||||
memory: {
|
||||
max: "6000",
|
||||
min: "4000"
|
||||
max: "6G",
|
||||
min: "4G"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue