fix: await file check promises

This commit is contained in:
2025-09-12 00:38:43 +02:00
parent 3e48f9c97c
commit dcaa4a7365
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@@ -87625,7 +87625,7 @@ class CustomService extends Service {
`- Function: ${funcFiles.length}`);
let success = true;
for (const jsonFile of jsonFiles) {
if (!this.checkFile(jsonFile, "json")) {
if (!(await this.checkFile(jsonFile, "json"))) {
success = false;
if (!this.options.reportAllErrors) {
return false;
@@ -87633,7 +87633,7 @@ class CustomService extends Service {
}
}
for (const funcFile of funcFiles) {
if (!this.checkFile(funcFile, "mcfunction")) {
if (!(await this.checkFile(funcFile, "mcfunction"))) {
success = false;
if (!this.options.reportAllErrors) {
return false;