fix: Incorrect calculation of resource pack installation progress (#74)
resolves #55
This commit is contained in:
parent
dd1c335c89
commit
46adf05534
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ export const installTexturePack = async (file: File | ArrayBuffer, name = file['
|
|||
const allFilesArr = Object.entries(zipFile.files)
|
||||
let done = 0
|
||||
const upStatus = () => {
|
||||
setLoadingScreenStatus(`${status} ${Math.round(++done / allFilesArr.length * 100)}%`)
|
||||
setLoadingScreenStatus(`${status} ${Math.round(done / allFilesArr.length * 100)}%`)
|
||||
}
|
||||
await Promise.all(allFilesArr.map(async ([path, file]) => {
|
||||
const writePath = join(texturePackBasePath, path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue