diff --git a/components/handler.js b/components/handler.js index 5458641..6e97fd0 100644 --- a/components/handler.js +++ b/components/handler.js @@ -177,8 +177,9 @@ class Handler { await Promise.all(this.version.libraries.map(async (lib) => { if (!lib.downloads.classifiers) return; - const type = `natives-${this.getOS()}`; - const native = lib.downloads.classifiers[type]; + const native = this.getOS() === 'osx' + ? lib.downloads.classifiers['natives-osx'] || lib.downloads.classifiers['natives-macos'] + : lib.downloads.classifiers[`natives-${this.getOS()}`]; if (native) { const name = native.path.split('/').pop(); diff --git a/components/launcher.js b/components/launcher.js index 366b5c8..473547f 100644 --- a/components/launcher.js +++ b/components/launcher.js @@ -78,7 +78,10 @@ class MCLCore extends EventEmitter { `-Xmx${this.options.memory.max}M`, `-Xms${this.options.memory.min}M` ]; - jvm.push(await this.handler.getJVM()); + if(this.handler.getOS() === 'osx') { + if(parseInt(versionFile.id.split('.')[1]) > 12) jvm.push(await this.handler.getJVM()); + } else jvm.push(await this.handler.getJVM()); + if(this.options.customArgs) jvm = jvm.concat(this.options.customArgs); const classes = await handler.cleanUp(await this.handler.getClasses()); diff --git a/package.json b/package.json index 201e604..0fece52 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minecraft-launcher-core", - "version": "3.7.0", + "version": "3.7.1", "description": "Lightweight module that downloads and runs Minecraft using javascript / NodeJS", "main": "index.js", "dependencies": {