Bound tree stage verification

This commit is contained in:
Daniar Mannanov 2026-08-17 22:28:55 +03:00
parent a2ee6f6a8f
commit 56a1a5f8d6

View file

@ -40,17 +40,13 @@ func TestStraightBlobTreeFromDatapack(t *testing.T) {
func TestBiomeTreeStageProducesTrees(t *testing.T) { func TestBiomeTreeStageProducesTrees(t *testing.T) {
gen := NewVanillaGenerator(12345) gen := NewVanillaGenerator(12345)
chunk := gen(3, -9)
trees := 0 trees := 0
for cx := int32(-12); cx <= 12; cx += 3 { for y := SeaLevel; y < 160; y++ {
for cz := int32(-12); cz <= 12; cz += 3 { for x := 0; x < 16; x++ {
chunk := gen(cx, cz) for z := 0; z < 16; z++ {
for y := SeaLevel; y < 160; y++ { if chunk.GetBlock(x, y, z) == StateOakLog {
for x := 0; x < 16; x++ { trees++
for z := 0; z < 16; z++ {
if chunk.GetBlock(x, y, z) == StateOakLog {
trees++
}
}
} }
} }
} }