mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
format
This commit is contained in:
parent
3258796af5
commit
86236db834
@ -1,6 +1,6 @@
|
|||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
import path from "node:path"
|
import path from "node:path"
|
||||||
import {EventEmitter} from "events"
|
import { EventEmitter } from "events"
|
||||||
import child from "child_process"
|
import child from "child_process"
|
||||||
|
|
||||||
import Handler from "./handler"
|
import Handler from "./handler"
|
||||||
@ -215,6 +215,7 @@ export default class MCLCore extends EventEmitter {
|
|||||||
startMinecraft(launchArguments) {
|
startMinecraft(launchArguments) {
|
||||||
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, detached: this.options.overrides.detached })
|
{ cwd: this.options.overrides.cwd || this.options.root, detached: this.options.overrides.detached })
|
||||||
|
|
||||||
minecraft.stdout.on('data', (data) => this.emit('data', data.toString('utf-8')))
|
minecraft.stdout.on('data', (data) => this.emit('data', data.toString('utf-8')))
|
||||||
minecraft.stderr.on('data', (data) => this.emit('data', data.toString('utf-8')))
|
minecraft.stderr.on('data', (data) => this.emit('data', data.toString('utf-8')))
|
||||||
minecraft.on('close', (code) => this.emit('close', code))
|
minecraft.on('close', (code) => this.emit('close', code))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user