Fixed incorrect chunk render counter

This commit is contained in:
Joshua Barretto 2020-04-23 16:57:47 +01:00
parent 06dc96c56b
commit 0c491bb558

View File

@ -1948,9 +1948,11 @@ impl<V: RectRasterableVol> Terrain<V> {
if *n >= chunks.len() {
None
} else {
*n += 1;
let pos = focus_chunk + rpos;
Some(chunks.get(&pos).map(|c| (pos, c)))
Some(chunks.get(&pos).map(|c| {
*n += 1;
(pos, c)
}))
}
})
.filter_map(|x| x);