From dcaa4a73654e67f3dd0a7b7f114bc6ea0a3dc308 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Fri, 12 Sep 2025 00:38:43 +0200 Subject: [PATCH] fix: await file check promises --- dist/index.js | 4 ++-- src/check_datapack.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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