mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed incorrect chunk render counter
This commit is contained in:
parent
06dc96c56b
commit
0c491bb558
@ -1948,9 +1948,11 @@ impl<V: RectRasterableVol> Terrain<V> {
|
|||||||
if *n >= chunks.len() {
|
if *n >= chunks.len() {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
*n += 1;
|
|
||||||
let pos = focus_chunk + rpos;
|
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);
|
.filter_map(|x| x);
|
||||||
|
Loading…
Reference in New Issue
Block a user