diff options
author | 0neGal <mail@0negal.com> | 2023-07-24 18:26:15 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-07-24 18:27:41 +0200 |
commit | 3b3173e0454605c8181f037fff49c7ab8a353cf8 (patch) | |
tree | d6eb4fb969aca4a0137c5de273550e9926785f8f /src/modules | |
parent | a01a44e75837a54b4bd9c3ba0a8171364c0d654d (diff) | |
download | Viper-3b3173e0454605c8181f037fff49c7ab8a353cf8.tar.gz Viper-3b3173e0454605c8181f037fff49c7ab8a353cf8.zip |
fixed removing mods breaking when reading manifest
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/mods.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |