From 221d565b2e4c731a44957b0282720be2650c0c1b Mon Sep 17 00:00:00 2001 From: Roujel Williams Date: Mon, 2 Dec 2024 17:40:44 -0500 Subject: [PATCH] Fixed potential structure leak --- src/server/modules/region_buffer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/modules/region_buffer.ts b/src/server/modules/region_buffer.ts index e3d53374c..9fbda2ff1 100644 --- a/src/server/modules/region_buffer.ts +++ b/src/server/modules/region_buffer.ts @@ -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);