From e0e5fb8d2a7670fc7ff848787924f28bb3d36ad8 Mon Sep 17 00:00:00 2001 From: tobspr Date: Fri, 14 Jan 2022 09:55:03 +0100 Subject: [PATCH] Fix mods folder incorrect path --- electron/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/index.js b/electron/index.js index e6f9ce1e..b3f75e72 100644 --- a/electron/index.js +++ b/electron/index.js @@ -17,7 +17,7 @@ const roamingFolder = ? process.env.HOME + "/Library/Preferences" : process.env.HOME + "/.local/share"); let storePath = path.join(roamingFolder, "shapez.io", "saves"); -let modsPath = path.join(app.getAppPath(), "mods"); +let modsPath = path.join(path.dirname(app.getPath("exe")), "mods"); if (!fs.existsSync(storePath)) { // No try-catch by design