4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-22 06:19:50 +01:00

hotfix issue which cause game to crash

This commit is contained in:
Quentin Legot 2021-04-28 13:18:06 +02:00
parent a9b1a7266d
commit f8a322278b

View File

@ -24,8 +24,6 @@ let auth = null
let Minecraftpath = join(appdata, ".altarik") let Minecraftpath = join(appdata, ".altarik")
// let clientPackage = "https://www.dropbox.com/s/ww6a052nzzgojdm/modpack.zip?dl=1" // 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 let modsList = undefined
function createWindow () { function createWindow () {
@ -104,15 +102,15 @@ ipcMain.on("notification", (event, args) => {
}) })
ipcMain.on("launch", (event, args) => { ipcMain.on("launch", (event, args) => {
extractMods(Number(args.chapter), event).then(() => { extractMods(Number(args.chapter), event).then((chapter) => {
launcher.launch({ launcher.launch({
// clientPackage: clientPackage, // clientPackage: clientPackage,
authorization: auth, authorization: auth,
root: Minecraftpath, root: Minecraftpath,
version: { version: {
number: version, number: chapter.minecraftVersion,
type: "release", type: "release",
custom: versionFolder custom: chapter.customVersion
}, },
memory: { memory: {
max: args.maxMem, 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 }) event.sender.send("progress", {type: "mods", task: Number(j)+1, total: chapter.modspack.mods.length })
resolve() resolve(chapter)
return return
} }