mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-06 05:33:58 +03:00
Forge -> Custom -> Vanilla
This commit is contained in:
parent
6efbc5e2c5
commit
5e5cf5158e
1 changed files with 1 additions and 2 deletions
|
@ -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' }))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue