From 46adf05534750f2bb686dc0cf4e10a9857f33bd8 Mon Sep 17 00:00:00 2001 From: Aliasghar Ghanati <45513491+AliLordLoss@users.noreply.github.com> Date: Fri, 23 Feb 2024 01:41:10 +0330 Subject: [PATCH 1/2] fix: Incorrect calculation of resource pack installation progress (#74) resolves #55 --- src/texturePack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/texturePack.ts b/src/texturePack.ts index 321ce104..3af09a87 100644 --- a/src/texturePack.ts +++ b/src/texturePack.ts @@ -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) From d36bec02bfb7222ef8ea1b0503371bf16812a9e2 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Fri, 23 Feb 2024 01:16:16 +0300 Subject: [PATCH 2/2] fix: open maps in the same tab --- src/menus/components/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menus/components/common.js b/src/menus/components/common.js index 3e827de1..83c74abd 100644 --- a/src/menus/components/common.js +++ b/src/menus/components/common.js @@ -48,7 +48,7 @@ function openURL (url, newTab = true) { if (newTab) { window.open(url, '_blank', 'noopener,noreferrer') } else { - window.open(url) + window.open(url, '_self') } }