diff --git a/package.json b/package.json index 0a38c67..7134af7 100644 --- a/package.json +++ b/package.json @@ -52,9 +52,9 @@ "electron-window-state": "^5.0.3", "escape-html": "^1.0.3", "md5-file": "^5.0.0", - "minecraft-data": "^2.70.2", + "minecraft-data": "^2.80.0", "minecraft-folder-path": "^1.1.0", - "minecraft-protocol": "^1.22.0", + "minecraft-protocol": "^1.24.1", "node-eval": "^2.0.0", "source-map-support": "^0.5.19", "ws": "^7.4.1" diff --git a/src/index.js b/src/index.js index d60ed09..7d53e25 100644 --- a/src/index.js +++ b/src/index.js @@ -27,8 +27,8 @@ const Store = require('electron-store') const store = new Store() let proxy // Defined later when an option is chosen -const resourcesPath = fs.existsSync('resources/app') - ? 'resources/app/' // Packaged with electron-forge +const resourcesPath = fs.existsSync(process.resourcesPath.concat('/app/')) + ? process.resourcesPath.concat('/app/') // Packaged with electron-forge : './' // npm start