diff options
| author | mat <git@matdoes.dev> | 2024-10-26 05:29:26 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-10-26 05:29:26 +0000 |
| commit | 6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f (patch) | |
| tree | 3b65d2984a0cffbe5acb3d44d7e3b8b145c32f95 /azalea-world/src/chunk_storage.rs | |
| parent | b762575db61cf775d603e11eb2bd27ae13bdc4e9 (diff) | |
| download | azalea-drasl-6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f.tar.xz | |
group imports with rustfmt
Diffstat (limited to 'azalea-world/src/chunk_storage.rs')
| -rwxr-xr-x | azalea-world/src/chunk_storage.rs | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index f1239f8a..5f8b8951 100755 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -1,13 +1,3 @@ -use crate::heightmap::Heightmap; -use crate::heightmap::HeightmapKind; -use crate::palette::PalettedContainer; -use crate::palette::PalettedContainerKind; -use azalea_block::BlockState; -use azalea_buf::{BufReadError, McBufReadable, McBufWritable}; -use azalea_core::position::{BlockPos, ChunkBlockPos, ChunkPos, ChunkSectionBlockPos}; -use nohash_hasher::IntMap; -use parking_lot::RwLock; -use simdnbt::owned::NbtCompound; use std::collections::hash_map::Entry; use std::str::FromStr; use std::{ @@ -16,8 +6,20 @@ use std::{ io::{Cursor, Write}, sync::{Arc, Weak}, }; + +use azalea_block::BlockState; +use azalea_buf::{BufReadError, McBufReadable, McBufWritable}; +use azalea_core::position::{BlockPos, ChunkBlockPos, ChunkPos, ChunkSectionBlockPos}; +use nohash_hasher::IntMap; +use parking_lot::RwLock; +use simdnbt::owned::NbtCompound; use tracing::{debug, trace, warn}; +use crate::heightmap::Heightmap; +use crate::heightmap::HeightmapKind; +use crate::palette::PalettedContainer; +use crate::palette::PalettedContainerKind; + const SECTION_HEIGHT: u32 = 16; /// An efficient storage of chunks for a client that has a limited render |
