mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
更新bug
This commit is contained in:
parent
cd87101bc8
commit
6293c0e4a4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user