Fix linux issues, thanks class paths! Closes #8

This commit is contained in:
Pierce 2019-04-26 20:18:18 -04:00
parent 77fe23a6a2
commit a535ddb890
2 changed files with 4 additions and 3 deletions

View file

@ -46,11 +46,12 @@ module.exports = async function (options) {
const classes = await handler.getClasses(options, versionFile);
const classPaths = ['-cp'];
const separator = options.os === "windows" ? ";" : ":";
if(forge) {
classPaths.push(`${options.forge.path};${forge.paths.join(';')};${classes.join(';')};${mcPath}`);
classPaths.push(`${options.forge.path}${separator}${forge.paths.join(separator)}${separator}${classes.join(separator)};${mcPath}`);
classPaths.push(forge.forge.mainClass)
} else {
classPaths.push(`${mcPath};${classes.join(";")}`);
classPaths.push(`${mcPath}${separator}${classes.join(separator)}`);
classPaths.push(versionFile.mainClass || custom.mainClass);
}

View file

@ -1,6 +1,6 @@
{
"name": "minecraft-launcher-core",
"version": "2.5.6",
"version": "2.5.7",
"description": "Module that downloads Minecraft assets and runs Minecraft. Also Supports Forge",
"main": "index.js",
"dependencies": {