From 5e5cf5158e9f20aec619e502d7ffaca8dcf34148 Mon Sep 17 00:00:00 2001 From: Pierce Date: Fri, 8 Jan 2021 17:03:32 -0500 Subject: [PATCH] Forge -> Custom -> Vanilla --- components/launcher.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/launcher.js b/components/launcher.js index 65f4ce7..50cb727 100644 --- a/components/launcher.js +++ b/components/launcher.js @@ -85,8 +85,7 @@ class MCLCore extends EventEmitter { this.options.forge = path.resolve(this.options.forge) this.emit('debug', '[MCLC]: Detected Forge in options, getting dependencies') modifyJson = await this.handler.getForgedWrapped() - } - if (this.options.version.custom) { + } else if (this.options.version.custom) { this.emit('debug', '[MCLC]: Detected custom in options, setting custom version file') modifyJson = modifyJson || JSON.parse(fs.readFileSync(path.join(this.options.root, 'versions', this.options.version.custom, `${this.options.version.custom}.json`), { encoding: 'utf8' })) }