pub fn populate_with_air(world: &mut World) {
    for x in -15..=15 {
        for z in -15..=15 {
            let chunk = Chunk::new(ChunkPosition::new(x, z));
            world
                .fetch_mut::<ChunkMap>()
                .set_chunk_at(chunk.position(), chunk);
        }
    }
}
/// Populates a 15x15 area of chunks around the origin
/// with air.
Populates a 15x15 area of chunks around the origin
with air.
Populates a 15x15 area of chunks around the origin with air .
pub fn populate_with_air(world: &mut World) {
    for x in -15..=15 {
        for z in -15..=15 {
            let chunk = Chunk::new(ChunkPosition::new(x, z));
            world
                .fetch_mut::<ChunkMap>()
                .set_chunk_at(chunk.position(), chunk);
        }
    }
}
pub fn populate_with_air ( world : & mut World ) { for x in - 15 ..= 15 { for z in - 15 ..= 15 { let chunk = Chunk :: new ( ChunkPosition :: new ( x , z ) ) ; world . fetch_mut :: < ChunkMap > ( ) . set_chunk_at ( chunk . position ( ) , chunk ) ; } } }
Populates a 15x15 area of chunks around the origin
with air.
Populates a 15x15 area of chunks around the origin with air .
world
&mut World
world
&mut World