From 56a1a5f8d6f9ccec600f15574615f79efbfbe40b Mon Sep 17 00:00:00 2001 From: Daniar Mannanov Date: Mon, 17 Aug 2026 22:28:55 +0300 Subject: [PATCH] Bound tree stage verification --- internal/world/trees_test.go | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/internal/world/trees_test.go b/internal/world/trees_test.go index 751052f..8a4cb98 100644 --- a/internal/world/trees_test.go +++ b/internal/world/trees_test.go @@ -40,17 +40,13 @@ func TestStraightBlobTreeFromDatapack(t *testing.T) { func TestBiomeTreeStageProducesTrees(t *testing.T) { gen := NewVanillaGenerator(12345) + chunk := gen(3, -9) trees := 0 - for cx := int32(-12); cx <= 12; cx += 3 { - for cz := int32(-12); cz <= 12; cz += 3 { - chunk := gen(cx, cz) - for y := SeaLevel; y < 160; y++ { - for x := 0; x < 16; x++ { - for z := 0; z < 16; z++ { - if chunk.GetBlock(x, y, z) == StateOakLog { - trees++ - } - } + for y := SeaLevel; y < 160; y++ { + for x := 0; x < 16; x++ { + for z := 0; z < 16; z++ { + if chunk.GetBlock(x, y, z) == StateOakLog { + trees++ } } }