diff --git a/components/handler.js b/components/handler.js index c0f5626..f0d17fc 100644 --- a/components/handler.js +++ b/components/handler.js @@ -133,7 +133,7 @@ class Handler { } async getJar () { - await this.downloadAsync(this.version.downloads.client.url, this.options.directory, `${this.options.version.number}.jar`, true, 'version-jar') + await this.downloadAsync(this.version.downloads.client.url, this.options.directory, `${this.options.version.custom ? this.options.version.custom : this.options.version.number}.jar`, true, 'version-jar') fs.writeFileSync(path.join(this.options.directory, `${this.options.version.number}.json`), JSON.stringify(this.version, null, 4)) diff --git a/components/launcher.js b/components/launcher.js index 80b20b4..86dbb53 100644 --- a/components/launcher.js +++ b/components/launcher.js @@ -52,7 +52,7 @@ class MCLCore extends EventEmitter { await this.handler.runInstaller(this.options.installer) } - const directory = this.options.overrides.directory || path.join(this.options.root, 'versions', this.options.version.number) + const directory = this.options.overrides.directory || path.join(this.options.root, 'versions', this.options.version.custom ? this.options.version.custom : this.options.version.number) this.options.directory = directory const versionFile = await this.handler.getVersion()