From a9e0a7cc3791ed2e66ef734f8a92d16d7bf76125 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Sun, 19 Sep 2021 22:27:28 +0200 Subject: [PATCH] Fix bug causing minecraft not launching + dump to 0.6.1 --- package-lock.json | 2 +- package.json | 2 +- src/server/minecraft.js | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 43cc141..8a3107c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "altarik-launcher", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 786dbc2..1cf1b1a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "altarik-launcher", "author": "Altarik", - "version": "0.6.0", + "version": "0.6.1", "description": "Altarik Launcher", "main": "src/server/main.js", "repository": "AltarikMC/Launcher", diff --git a/src/server/minecraft.js b/src/server/minecraft.js index ded3b92..b49cd07 100644 --- a/src/server/minecraft.js +++ b/src/server/minecraft.js @@ -223,8 +223,6 @@ class Minecraft { downloadMods(link, path) { return new Promise((resolve, reject) => { - if(!navigator.onLine) - reject("offline") axios.get(link, {responseType: "stream"}).then(res => { if(res.status === 200) { if(fs.existsSync(path))