From 3b3173e0454605c8181f037fff49c7ab8a353cf8 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Mon, 24 Jul 2023 18:26:15 +0200 Subject: fixed removing mods breaking when reading manifest --- src/modules/mods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/mods.js') diff --git a/src/modules/mods.js b/src/modules/mods.js index d3d3a50..3c469c3 100644 --- a/src/modules/mods.js +++ b/src/modules/mods.js @@ -602,7 +602,7 @@ mods.remove = (mod) => { // if the mod has a manifest.json we want to save it now so we can // send it later when telling the renderer about the deleted mod if (fs.existsSync(path.join(mod_path, "manifest.json"))) { - manifest_name = require(path.join(mod_path, "manifest.json")).name; + manifest_name = json(path.join(mod_path, "manifest.json")).name; } // actually remove the mod itself -- cgit v1.2.3