From 4b2393544b4b2f3801abd0b00f57a0ab642540b4 Mon Sep 17 00:00:00 2001 From: Pierce Date: Fri, 26 Apr 2019 12:47:39 -0400 Subject: [PATCH] Revert "Fix duplicate launch arguments causing a crash in older versions" This reverts commit 2ca80ba612c11ddb23710d4a740281745a6bed88. --- components/launcher.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/launcher.js b/components/launcher.js index 61d101d..a152fd9 100644 --- a/components/launcher.js +++ b/components/launcher.js @@ -62,13 +62,7 @@ module.exports = async function (options) { const launchArguments = args.concat(jvm, classPaths, launchOptions); - const cleanArguments = []; - for(arg in launchArguments) { - if (cleanArguments.includes(launchArguments[arg])) continue; - cleanArguments.push(launchArguments[arg]); - } - - const minecraft = child.spawn(options.javaPath ? options.javaPath : 'java', cleanArguments); + const minecraft = child.spawn(options.javaPath ? options.javaPath : 'java', launchArguments); minecraft.stdout.on('data', (data) => event.emit('data', data)); minecraft.stderr.on('data', (data) => event.emit('error', data)); minecraft.on('close', (code) => event.emit('close', code));