From 0e864230a59de95fa331b7efd1a202b0db28c626 Mon Sep 17 00:00:00 2001 From: EmeraldBlock Date: Tue, 18 Jan 2022 17:12:53 -0600 Subject: [PATCH] allow command line switch to load more than one mod --- electron/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electron/index.js b/electron/index.js index 18943589..f1de906f 100644 --- a/electron/index.js +++ b/electron/index.js @@ -361,7 +361,8 @@ ipcMain.handle("get-mods", async () => { if (externalMod) { console.log("Adding external mod source:", externalMod); - modFiles.push(externalMod); + const externalModPaths = externalMod.split(","); + modFiles = modFiles.concat(externalModPaths); } if (modFiles.length > 0 && !isDev) {