use column sample for tree for crowding value

This commit is contained in:
Isse 2024-05-02 00:34:07 +02:00
parent fabc0dc37c
commit 7cb8d12829
No known key found for this signature in database

View File

@ -87,7 +87,6 @@ pub fn apply_trees_to(
canvas.foreach_col(|canvas, wpos2d, col| {
let trees = tree_cache.get(wpos2d, |wpos, seed| {
let scale = 1.0;
let crowding = col.tree_density;
let inhabited = false;
let forest_kind = *info
.chunks()
@ -97,6 +96,8 @@ pub fn apply_trees_to(
let col = ColumnGen::new(info.chunks()).get((wpos, info.index(), calendar))?;
let crowding = col.tree_density;
if !tree_valid_at(wpos, &col, Some(info), seed) {
return None;
}