From fa290b30f2e739e8575cbf3384a22d404b03fa6e Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 11 Dec 2022 03:23:20 -0600 Subject: fix PartialWorld::default() for tests --- azalea-world/src/chunk_storage.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'azalea-world/src/chunk_storage.rs') 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>, + pub shared: Arc>, 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, -- cgit v1.2.3