mirror of
https://github.com/AltarikMC/Launcher
synced 2024-11-22 06:19:50 +01:00
Fix bug causing minecraft not launching + dump to 0.6.1
This commit is contained in:
parent
3c3f5b532b
commit
a9e0a7cc37
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "altarik-launcher",
|
"name": "altarik-launcher",
|
||||||
"version": "0.6.0",
|
"version": "0.6.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "altarik-launcher",
|
"name": "altarik-launcher",
|
||||||
"author": "Altarik",
|
"author": "Altarik",
|
||||||
"version": "0.6.0",
|
"version": "0.6.1",
|
||||||
"description": "Altarik Launcher",
|
"description": "Altarik Launcher",
|
||||||
"main": "src/server/main.js",
|
"main": "src/server/main.js",
|
||||||
"repository": "AltarikMC/Launcher",
|
"repository": "AltarikMC/Launcher",
|
||||||
|
@ -223,8 +223,6 @@ class Minecraft {
|
|||||||
|
|
||||||
downloadMods(link, path) {
|
downloadMods(link, path) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if(!navigator.onLine)
|
|
||||||
reject("offline")
|
|
||||||
axios.get(link, {responseType: "stream"}).then(res => {
|
axios.get(link, {responseType: "stream"}).then(res => {
|
||||||
if(res.status === 200) {
|
if(res.status === 200) {
|
||||||
if(fs.existsSync(path))
|
if(fs.existsSync(path))
|
||||||
|
Loading…
Reference in New Issue
Block a user