got rid of incorrect string processing

This commit is contained in:
APEX FIGHT 2025-03-11 10:21:58 -04:00
parent 3caa59ccbf
commit 4fdfe49904

View File

@ -13,7 +13,7 @@ var modList = mods.mod_list;
var modDownloads = mods.mod_downloads; var modDownloads = mods.mod_downloads;
modList.forEach((ele, idx, arr) => { modList.forEach((ele, idx, arr) => {
let link = modDownloads[ele]; let link = modDownloads[ele];
let modinfo = { let modinfo = {
modName: "", modName: "",
@ -30,7 +30,7 @@ modList.forEach((ele, idx, arr) => {
} }
if (process.argv[2] != "overwrite"){ if (process.argv[2] != "overwrite"){
if (Object.keys(oldRegistry).includes(ele.substring(1))) { if (Object.keys(oldRegistry).includes(ele)) {
return; return;
} }
} }