aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-world/src')
-rw-r--r--azalea-world/src/chunk_storage.rs20
-rw-r--r--azalea-world/src/world.rs12
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;