Skip to content

Commit

Permalink
Fixed potential structure leak
Browse files Browse the repository at this point in the history
  • Loading branch information
SIsilicon committed Dec 2, 2024
1 parent 54ee8f8 commit 221d565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/modules/region_buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class RegionBuffer {
const locString = locToString(localLoc);
const name = buffer.id + "_block" + locString;
world.structureManager.delete(name);
buffer.extraBlockData[locString] = world.structureManager.createFromWorld(name, block.dimension, loc, loc, { includeEntities: false });
buffer.extraBlockData[locString] = world.structureManager.createFromWorld(name, block.dimension, loc, loc, { includeEntities: false, saveMode: StructureSaveMode.Memory });
}

if (iterateChunk()) yield Jobs.setProgress(i / volume);
Expand Down

0 comments on commit 221d565

Please sign in to comment.