From 4fc93e7a7f552866e97b02b1d9e6d5434a18758b Mon Sep 17 00:00:00 2001 From: leaftail1880 <110915645+leaftaul1880@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:32:32 +0300 Subject: [PATCH] Add onCreate hook to warden loot region --- src/modules/places/dungeons/warden.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/places/dungeons/warden.ts b/src/modules/places/dungeons/warden.ts index ce35181b..bc3f7705 100644 --- a/src/modules/places/dungeons/warden.ts +++ b/src/modules/places/dungeons/warden.ts @@ -52,6 +52,14 @@ class WardenDungeonLootRegion extends Region { owners: [], openContainers: false, } + + protected onCreate(): void { + this.area.forEachVector((vector, isIn, dimension) => { + if (isIn) { + dimension.setBlockType(vector, MinecraftBlockTypes.Air) + } + }) + } } registerSaveableRegion('wardenDungeonLoot', WardenDungeonLootRegion) registerCreateableRegion('Лут данжа вардена', WardenDungeonLootRegion)