diff options
| author | mat <github@matdoes.dev> | 2022-12-11 03:23:20 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-12-11 03:23:20 -0600 |
| commit | fa290b30f2e739e8575cbf3384a22d404b03fa6e (patch) | |
| tree | 306f3e4ae377ef0d176b278eabc41a2653f455d8 /azalea-world/src/chunk_storage.rs | |
| parent | b60a55e61ed5ee7a37df20802b6d95543657ea40 (diff) | |
| download | azalea-drasl-fa290b30f2e739e8575cbf3384a22d404b03fa6e.tar.xz | |
fix PartialWorld::default() for tests
Diffstat (limited to 'azalea-world/src/chunk_storage.rs')
| -rwxr-xr-x | azalea-world/src/chunk_storage.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index 6d3907f0..c0c5f43a 100755 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -20,7 +20,7 @@ const SECTION_HEIGHT: u32 = 16; /// [`ChunkStorage`] instead. pub struct PartialChunkStorage { /// Chunk storage that can be shared by clients. - shared: Arc<RwLock<WeakChunkStorage>>, + pub shared: Arc<RwLock<WeakChunkStorage>>, pub view_center: ChunkPos, chunk_radius: u32, @@ -32,6 +32,7 @@ pub struct PartialChunkStorage { /// A storage for chunks where they're only stored weakly, so if they're not /// actively being used somewhere else they'll be forgotten. This is used for /// shared worlds. +#[derive(Debug)] pub struct WeakChunkStorage { pub height: u32, pub min_y: i32, |
