Forge -> Custom -> Vanilla

This commit is contained in:
Pierce 2021-01-08 17:03:32 -05:00
parent 6efbc5e2c5
commit 5e5cf5158e

View file

@ -85,8 +85,7 @@ class MCLCore extends EventEmitter {
this.options.forge = path.resolve(this.options.forge) this.options.forge = path.resolve(this.options.forge)
this.emit('debug', '[MCLC]: Detected Forge in options, getting dependencies') this.emit('debug', '[MCLC]: Detected Forge in options, getting dependencies')
modifyJson = await this.handler.getForgedWrapped() modifyJson = await this.handler.getForgedWrapped()
} } else if (this.options.version.custom) {
if (this.options.version.custom) {
this.emit('debug', '[MCLC]: Detected custom in options, setting custom version file') 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' })) modifyJson = modifyJson || JSON.parse(fs.readFileSync(path.join(this.options.root, 'versions', this.options.version.custom, `${this.options.version.custom}.json`), { encoding: 'utf8' }))
} }