From 53f20d54d3d3548e7612519cd9c1b6e5574b2d8f Mon Sep 17 00:00:00 2001 From: MT224244 Date: Wed, 19 Aug 2020 12:08:12 +0900 Subject: [PATCH] Remove the hardcoded "M" in the JVM memory allocation argument. --- README.md | 4 ++-- components/launcher.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a4130a5..ed875b8 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 4e795b0..3ad0b56 100644 --- a/components/launcher.js +++ b/components/launcher.js @@ -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())