added client checking for client only mods

This commit is contained in:
APEX FIGHT 2025-03-10 21:29:59 -04:00
parent 5e7b7bd03c
commit 4818b27aec

View File

@ -16,8 +16,13 @@ modList.forEach((ele, idx, arr) => {
let modinfo = {
modName: "",
link: link
}
if (link == "client"){
modinfo.modName = "*" + ele;
return;
}
let output = cp.execSync("cd /root/mcserver/mods && wget --content-disposition " + link).toString('utf-8'); //change dir and download mod
console.log(output);
try {