mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 20:26:22 +03:00
Revert "Fix duplicate launch arguments causing a crash in older versions"
This reverts commit 2ca80ba612
.
This commit is contained in:
parent
1ca9d97c71
commit
4b2393544b
1 changed files with 1 additions and 7 deletions
|
@ -62,13 +62,7 @@ module.exports = async function (options) {
|
||||||
|
|
||||||
const launchArguments = args.concat(jvm, classPaths, launchOptions);
|
const launchArguments = args.concat(jvm, classPaths, launchOptions);
|
||||||
|
|
||||||
const cleanArguments = [];
|
const minecraft = child.spawn(options.javaPath ? options.javaPath : 'java', launchArguments);
|
||||||
for(arg in launchArguments) {
|
|
||||||
if (cleanArguments.includes(launchArguments[arg])) continue;
|
|
||||||
cleanArguments.push(launchArguments[arg]);
|
|
||||||
}
|
|
||||||
|
|
||||||
const minecraft = child.spawn(options.javaPath ? options.javaPath : 'java', cleanArguments);
|
|
||||||
minecraft.stdout.on('data', (data) => event.emit('data', data));
|
minecraft.stdout.on('data', (data) => event.emit('data', data));
|
||||||
minecraft.stderr.on('data', (data) => event.emit('error', data));
|
minecraft.stderr.on('data', (data) => event.emit('error', data));
|
||||||
minecraft.on('close', (code) => event.emit('close', code));
|
minecraft.on('close', (code) => event.emit('close', code));
|
||||||
|
|
Loading…
Add table
Reference in a new issue