From 01553a607ea504a7daa81f5b12179c6acadb822e Mon Sep 17 00:00:00 2001 From: Bee <117178732+everloste@users.noreply.github.com> Date: Sun, 17 Aug 2025 21:37:43 +0200 Subject: [PATCH] fix bug >.< --- src/datapack_changes.ts | 2 ++ src/main.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/datapack_changes.ts b/src/datapack_changes.ts index d096c4f..48b4fdd 100644 --- a/src/datapack_changes.ts +++ b/src/datapack_changes.ts @@ -185,7 +185,9 @@ export class DatapackModifier { private wipeCache() { this.changeCache = {}; + this.changeQueue = []; console.info("[DatapackModifier] Change cache wiped.") + console.info("[DatapackModifier] Change queue wiped.") } // #endregion diff --git a/src/main.ts b/src/main.ts index be7c4c3..131db62 100644 --- a/src/main.ts +++ b/src/main.ts @@ -124,10 +124,10 @@ function exportButtonClicked() { const export_settings = getExportSettings(); datapackStore.getAll().forEach((datapack) => { - datapack.instancedConfig?.apply(); + datapack.instancedConfig?.apply(); // this queues changes }); - DatapackModifierInstance.applyChanges(datapackStore.getAll(), export_settings).then(() => { + DatapackModifierInstance.applyChanges(datapackStore.getAll(), export_settings).then(() => { // this applies changes and wipes changes document.getElementById("progress-indicator")!.hidden = true; }); }