File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,9 @@ export class DatapackModifier {
185185
186186 private wipeCache ( ) {
187187 this . changeCache = { } ;
188+ this . changeQueue = [ ] ;
188189 console . info ( "[DatapackModifier] Change cache wiped." )
190+ console . info ( "[DatapackModifier] Change queue wiped." )
189191 }
190192
191193 // #endregion
Original file line number Diff line number Diff line change @@ -124,10 +124,10 @@ function exportButtonClicked() {
124124 const export_settings = getExportSettings ( ) ;
125125
126126 datapackStore . getAll ( ) . forEach ( ( datapack ) => {
127- datapack . instancedConfig ?. apply ( ) ;
127+ datapack . instancedConfig ?. apply ( ) ; // this queues changes
128128 } ) ;
129129
130- DatapackModifierInstance . applyChanges ( datapackStore . getAll ( ) , export_settings ) . then ( ( ) => {
130+ DatapackModifierInstance . applyChanges ( datapackStore . getAll ( ) , export_settings ) . then ( ( ) => { // this applies changes and wipes changes
131131 document . getElementById ( "progress-indicator" ) ! . hidden = true ;
132132 } ) ;
133133}
You can’t perform that action at this time.
0 commit comments