test(worldgen): 村庄跨区块阈值修正

This commit is contained in:
NianGao Dev
2026-08-15 23:28:29 +08:00
parent 7cf12ce751
commit c82bf994be
2803 changed files with 1590385 additions and 2 deletions

View File

@@ -114,8 +114,8 @@ func TestVillage(t *testing.T) {
cobbleCnt++
}
}
// 建筑跨区块:中心区块至少包含部分房屋/水井
if plankCnt < 20 || cobbleCnt == 0 {
// 建筑跨区块:中心区块至少包含水井(圆石)与部分房屋(木板)
if plankCnt < 10 || cobbleCnt == 0 {
t.Fatalf("村庄区块 (%d,%d) 建筑过少: 木板 %d 圆石 %d", cx, cz, plankCnt, cobbleCnt)
}
found++