mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: use resolve
This commit is contained in:
1 parent
57dacddcfd
commit
4b5a511216
1 file changed
+2
-2
@@ -62,7 +62,7 @@ export async function consumableProvisionIcons() {
|
|||||||
.replace(".psd", "")
|
.replace(".psd", "")
|
||||||
.replace(".txt", "");
|
.replace(".txt", "");
|
||||||
|
|
||||||
if (vfs.has(`Data/${configPath}.packed.webp`)) {
|
if (vfs.resolve(`Data/${configPath}.packed.webp`)) {
|
||||||
const image = sharp(
|
const image = sharp(
|
||||||
await vfs.file(`Data/${configPath}.packed.webp`)
|
await vfs.file(`Data/${configPath}.packed.webp`)
|
||||||
);
|
);
|
||||||
@@ -131,7 +131,7 @@ export async function consumableProvisionIcons() {
|
|||||||
.replace(".psd", "")
|
.replace(".psd", "")
|
||||||
.replace(".txt", "");
|
.replace(".txt", "");
|
||||||
|
|
||||||
if (vfs.has(`Data/${configPath}.packed.webp`)) {
|
if (vfs.resolve(`Data/${configPath}.packed.webp`)) {
|
||||||
const image = sharp(
|
const image = sharp(
|
||||||
await vfs.file(`Data/${configPath}.packed.webp`)
|
await vfs.file(`Data/${configPath}.packed.webp`)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user