mirror of
https://github.com/eliasstepanik/voxel-simulation.git
synced 2026-01-26 21:18:56 +00:00
Fix spawn key type
This commit is contained in:
parent
f9a51f5acc
commit
b3bb203fba
@ -79,7 +79,7 @@ pub fn apply_visible_chunk_results(
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|r| {
|
.filter_map(|r| {
|
||||||
if r.dist2 < 0 { return None; }
|
if r.dist2 < 0 { return None; }
|
||||||
let key = (r.key.x, r.key.y, r.key.z);
|
let key = ChunkKey(r.key.x, r.key.y, r.key.z);
|
||||||
if spawned.0.contains_key(&key) { return None; }
|
if spawned.0.contains_key(&key) { return None; }
|
||||||
Some((key, r.dist2))
|
Some((key, r.dist2))
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user