2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00

更新bug

This commit is contained in:
leiyilu 2022-06-21 22:03:01 +08:00
parent cd87101bc8
commit 6293c0e4a4

View File

@ -69,7 +69,11 @@ export async function init(isUpdate = false) {
weapon.set(val, i);
}
}
weaponFile = fs.readdirSync("./plugins/xiaoyao-cvs-plugin/resources/xiaoyao-plus/wuqi_tujian");
let paths="./plugins/xiaoyao-cvs-plugin/resources/xiaoyao-plus/wuqi_tujian";
if (!fs.existsSync(paths)) {
return true;
}
weaponFile = fs.readdirSync(paths);
for (let val of weaponFile) {
let name = val.replace(".png", "");
weapon.set(name, name);