From f8a322278b780d6c3cdbb53245fea8631d12669f Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Wed, 28 Apr 2021 13:18:06 +0200 Subject: [PATCH] hotfix issue which cause game to crash --- src/server/main.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/server/main.js b/src/server/main.js index 73a3609..646a502 100644 --- a/src/server/main.js +++ b/src/server/main.js @@ -24,8 +24,6 @@ let auth = null let Minecraftpath = join(appdata, ".altarik") // let clientPackage = "https://www.dropbox.com/s/ww6a052nzzgojdm/modpack.zip?dl=1" -let version = "1.16.4" -let versionFolder = "fabric-loader-0.10.8-1.16.4" let modsList = undefined function createWindow () { @@ -104,15 +102,15 @@ ipcMain.on("notification", (event, args) => { }) ipcMain.on("launch", (event, args) => { - extractMods(Number(args.chapter), event).then(() => { + extractMods(Number(args.chapter), event).then((chapter) => { launcher.launch({ // clientPackage: clientPackage, authorization: auth, root: Minecraftpath, version: { - number: version, + number: chapter.minecraftVersion, type: "release", - custom: versionFolder + custom: chapter.customVersion }, memory: { max: args.maxMem, @@ -228,7 +226,7 @@ async function extractMods(chapterId, event) { } } event.sender.send("progress", {type: "mods", task: Number(j)+1, total: chapter.modspack.mods.length }) - resolve() + resolve(chapter) return }