aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-03 09:52:30 +0930
committermat <git@matdoes.dev>2025-06-03 09:52:30 +0930
commitf3a5e91a8ccbcd03a239aa3565dbfddabb26fa76 (patch)
treeb9f34dda5ba68bbfc4159dd1631455c8dd84e2ad /azalea-world/src
parent7517a207db658c98d5b97b3b3f44df6725c025a2 (diff)
downloadazalea-drasl-f3a5e91a8ccbcd03a239aa3565dbfddabb26fa76.tar.xz
fix issues when pathfinding to non-full blocks and add Client::view_inventory
Diffstat (limited to 'azalea-world/src')
-rw-r--r--azalea-world/src/chunk_storage.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs
index 23d1bb89..a6e33739 100644
--- a/azalea-world/src/chunk_storage.rs
+++ b/azalea-world/src/chunk_storage.rs
@@ -41,6 +41,9 @@ 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.
+///
+/// This is relatively cheap to clone since it's just an `IntMap` with `Weak`
+/// pointers.
#[derive(Debug, Clone)]
pub struct ChunkStorage {
pub height: u32,