diff options
| author | mat <git@matdoes.dev> | 2025-05-30 14:44:48 -1300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-30 14:44:48 -1300 |
| commit | e37524899eef8a0034faee35cef4bbf1ba779a7d (patch) | |
| tree | 5afe343086db2a9ebc78fe0a6987b9325286cc66 /azalea-world/src | |
| parent | ae4b1e85e669bc882d158509ef1eda46c6b2a72e (diff) | |
| download | azalea-drasl-e37524899eef8a0034faee35cef4bbf1ba779a7d.tar.xz | |
formatting: merge imports
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/chunk_storage.rs | 20 | ||||
| -rw-r--r-- | azalea-world/src/world.rs | 12 |
2 files changed, 17 insertions, 15 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index b3ccbe3a..b65c86b1 100644 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -1,24 +1,26 @@ -use std::collections::hash_map::Entry; use std::{ - collections::HashMap, + collections::{HashMap, hash_map::Entry}, + fmt, fmt::Debug, + io, io::{Cursor, Write}, sync::{Arc, Weak}, }; -use std::{fmt, io}; -use azalea_block::block_state::{BlockState, BlockStateIntegerRepr}; -use azalea_block::fluid_state::FluidState; +use azalea_block::{ + block_state::{BlockState, BlockStateIntegerRepr}, + fluid_state::FluidState, +}; use azalea_buf::{AzaleaRead, AzaleaWrite, BufReadError}; use azalea_core::position::{BlockPos, ChunkBlockPos, ChunkPos, ChunkSectionBlockPos}; use nohash_hasher::IntMap; use parking_lot::RwLock; use tracing::{debug, trace, warn}; -use crate::heightmap::Heightmap; -use crate::heightmap::HeightmapKind; -use crate::palette::PalettedContainer; -use crate::palette::PalettedContainerKind; +use crate::{ + heightmap::{Heightmap, HeightmapKind}, + palette::{PalettedContainer, PalettedContainerKind}, +}; const SECTION_HEIGHT: u32 = 16; diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs index 9a734ab1..183f59b5 100644 --- a/azalea-world/src/world.rs +++ b/azalea-world/src/world.rs @@ -1,16 +1,16 @@ use std::{ collections::{HashMap, HashSet}, - fmt::Debug, - fmt::{self, Display}, + fmt::{self, Debug, Display}, hash::{Hash, Hasher}, io::{self, Cursor}, }; -use azalea_block::BlockState; -use azalea_block::fluid_state::FluidState; +use azalea_block::{BlockState, fluid_state::FluidState}; use azalea_buf::{AzaleaRead, AzaleaReadVar, AzaleaWrite, AzaleaWriteVar, BufReadError}; -use azalea_core::position::{BlockPos, ChunkPos}; -use azalea_core::registry_holder::RegistryHolder; +use azalea_core::{ + position::{BlockPos, ChunkPos}, + registry_holder::RegistryHolder, +}; use bevy_ecs::{component::Component, entity::Entity}; use derive_more::{Deref, DerefMut}; use nohash_hasher::IntMap; |
