mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2025-02-23 20:51:30 +03:00
added cwd
This commit is contained in:
parent
22baef8735
commit
779f828cde
3 changed files with 5 additions and 3 deletions
|
@ -113,7 +113,8 @@ class MCLCore extends EventEmitter {
|
|||
this.emit('arguments', launchArguments);
|
||||
this.emit('debug', launchArguments.join(' '));
|
||||
|
||||
const minecraft = child.spawn(this.options.javaPath ? this.options.javaPath : 'java', launchArguments);
|
||||
const minecraft = child.spawn(this.options.javaPath ? this.options.javaPath : 'java', launchArguments,
|
||||
{cwd: this.options.overrides.cwd || this.options.root});
|
||||
minecraft.stdout.on('data', (data) => this.emit('data', data));
|
||||
minecraft.stderr.on('data', (data) => this.emit('data', data));
|
||||
minecraft.on('close', (code) => this.emit('close', code));
|
||||
|
|
Loading…
Add table
Reference in a new issue