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; }); }