diff --git a/README.md b/README.md index 9890c87..db74b1d 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ let opts = { type: "release" }, memory: { - max: "6000", - min: "4000" + max: "6G", + min: "4G" } } diff --git a/components/launcher.js b/components/launcher.js index 8d0c603..6050b72 100644 --- a/components/launcher.js +++ b/components/launcher.js @@ -99,8 +99,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())