Skip to content

Commit

Permalink
Add onCreate hook to warden loot region
Browse files Browse the repository at this point in the history
  • Loading branch information
leaftail1880 committed Jan 6, 2025
1 parent 0ebb2c5 commit 4fc93e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/places/dungeons/warden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fc93e7

Please sign in to comment.