Fix wall rails and water biomes

This commit is contained in:
chelsea
2026-05-02 23:23:29 -05:00
parent 335b35d416
commit 127e706bcb
4 changed files with 22 additions and 4 deletions

View File

@@ -3811,7 +3811,8 @@ static void generate_chunk_border_wall(worldgen_ctx *ctx, int chunk_x, int chunk
}
if (top + 1 < CHUNK_HEIGHT) {
if (!in_tower && (side_dist == wall_start || side_dist == wall_end)) {
set_block_with_height(out, dx, dz, top + 1, BLOCK_IRON_BARS);
uint16_t rail_block = (side < 2) ? BLOCK_IRON_BARS_NS : BLOCK_IRON_BARS_EW;
set_block_with_height(out, dx, dz, top + 1, rail_block);
} else if (in_tower && phase % 4 < 2) {
set_block_with_height(out, dx, dz, top + 1, BLOCK_STONE_BRICKS);
}