diff --git a/dist/index.js b/dist/index.js index 82f639a..d31e066 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; diff --git a/src/check_datapack.ts b/src/check_datapack.ts index 9e703f3..5605388 100644 --- a/src/check_datapack.ts +++ b/src/check_datapack.ts @@ -166,7 +166,7 @@ export class CustomService extends core.Service { ) 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 @@ -174,7 +174,7 @@ export class CustomService extends core.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