fix:DeEarth unzip出错时无法处理 refactor:支持从MCIM获取head
This commit is contained in:
@@ -35,6 +35,7 @@ fs.mkdirSync(movepath)
|
||||
}
|
||||
|
||||
export async function DeEarth(modpath: string, movepath: string) {
|
||||
try{
|
||||
const zip = new AdmZip(modpath).getEntries();
|
||||
//for (let i = 0; i < zip.length; i++) {
|
||||
//const e = zip[i]
|
||||
@@ -126,6 +127,9 @@ export async function DeEarth(modpath: string, movepath: string) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch(error){
|
||||
LOGGER.error("DeEarth: "+error)
|
||||
}
|
||||
}
|
||||
|
||||
async function FastGot(url: string) {
|
||||
|
||||
Reference in New Issue
Block a user