Skip to content

Commit efc7368

Browse files
committed
abc
1 parent 86209f5 commit efc7368

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/places/dungeons/warden.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ system.runInterval(
111111
const newRegion = regions.randomElement()
112112
regions = regions.filter(e => e !== newRegion)
113113
newRegion.ldb.selected = true
114+
console.log('Debris select', Vec.string(newRegion.area.center, false))
114115
selectedRegions.push(newRegion)
115116
}
116117
},
@@ -149,7 +150,7 @@ system.runInterval(
149150
const below = region.dimension.getBlock(Vec.add(location, Vec.down))
150151
if (!below || below.isAir) return
151152

152-
if (rollChance(10)) {
153+
if (!chest && rollChance(10)) {
153154
chest = true
154155
region.dimension.setBlockType(location, MinecraftBlockTypes.Chest)
155156
} else {

0 commit comments

Comments
 (0)