Fix clippy::manual_flatten, use flatten()
This commit is contained in:
parent
d15229dd0b
commit
53a0bc9fb6
|
@ -1902,8 +1902,7 @@ impl Server {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn load_block_entities(&mut self, block_entities: Vec<Option<crate::nbt::NamedTag>>) {
|
fn load_block_entities(&mut self, block_entities: Vec<Option<crate::nbt::NamedTag>>) {
|
||||||
for optional_block_entity in block_entities {
|
for block_entity in block_entities.into_iter().flatten() {
|
||||||
if let Some(block_entity) = optional_block_entity {
|
|
||||||
let x = block_entity.1.get("x").unwrap().as_int().unwrap();
|
let x = block_entity.1.get("x").unwrap().as_int().unwrap();
|
||||||
let y = block_entity.1.get("y").unwrap().as_int().unwrap();
|
let y = block_entity.1.get("y").unwrap().as_int().unwrap();
|
||||||
let z = block_entity.1.get("z").unwrap().as_int().unwrap();
|
let z = block_entity.1.get("z").unwrap().as_int().unwrap();
|
||||||
|
@ -1929,7 +1928,6 @@ impl Server {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fn on_chunk_data_biomes3d_varint(
|
fn on_chunk_data_biomes3d_varint(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|
Loading…
Reference in New Issue