fix: icon

This commit is contained in:
2026-05-23 13:46:26 +08:00
Unverified
parent 3df65cf1e9
commit 449c41bda0
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -624,11 +624,11 @@ world.beforeEvents.chatSend.subscribe((event) => {
*/
async addIcon() {
try {
const imageUrl = `./pack_icon.jpg`;
const imageUrl = `./pack_icon.png`;
const response = await fetch(imageUrl);
if (response.ok) {
const blob = await response.blob();
this.zip.file("pack_icon.jpg", blob);
this.zip.file("pack_icon.png", blob);
}
} catch (error) {
console.warn(i18n[currentLang].ERROR_IMAGE_FETCH, error);
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB