diff options
| author | mat <git@matdoes.dev> | 2026-03-27 13:49:18 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-28 01:49:34 +0600 |
| commit | 2d3e4194b885ec499826812da52c965f5a7235cf (patch) | |
| tree | 9cffc73bb9c5ffa29591392f060816b2c9f321a6 /azalea-world/src | |
| parent | eeaf1435e81d9cbd8daa0efa22029c1f259a64b5 (diff) | |
| download | azalea-drasl-2d3e4194b885ec499826812da52c965f5a7235cf.tar.xz | |
instant path updates for simple paths, and add follow command to testbot
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/chunk/mod.rs | 2 | ||||
| -rw-r--r-- | azalea-world/src/chunk/partial.rs | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/azalea-world/src/chunk/mod.rs b/azalea-world/src/chunk/mod.rs index 48cb202c..66b2434b 100644 --- a/azalea-world/src/chunk/mod.rs +++ b/azalea-world/src/chunk/mod.rs @@ -26,6 +26,8 @@ const SECTION_HEIGHT: u32 = 16; /// This only contains blocks and biomes. You can derive the height of the chunk /// from the number of sections, but you need a [`ChunkStorage`] to get the /// minimum Y coordinate. +/// +/// [`ChunkStorage`]: crate::ChunkStorage #[derive(Debug)] pub struct Chunk { pub sections: Box<[Section]>, diff --git a/azalea-world/src/chunk/partial.rs b/azalea-world/src/chunk/partial.rs index e0f4912b..e476f075 100644 --- a/azalea-world/src/chunk/partial.rs +++ b/azalea-world/src/chunk/partial.rs @@ -140,7 +140,9 @@ impl PartialChunkStorage { } /// Get a [`Chunk`] within render distance, or `None` if it's not loaded. - /// Use [`ChunkStorage::get`] to get a chunk from the shared storage. + /// Use [`ChunkStorageTrait::get`] to get a chunk from the shared storage. + /// + /// [`ChunkStorageTrait::get`]: crate::chunk::storage::ChunkStorageTrait::get pub fn limited_get(&self, pos: &ChunkPos) -> Option<&Arc<RwLock<Chunk>>> { if !self.in_range(pos) { warn!( @@ -156,7 +158,9 @@ impl PartialChunkStorage { /// Get a mutable reference to a [`Chunk`] within render distance, or /// `None` if it's not loaded. /// - /// Use [`ChunkStorage::get`] to get a chunk from the shared storage. + /// Use [`ChunkStorageTrait::get`] to get a chunk from the shared storage. + /// + /// [`ChunkStorageTrait::get`]: crate::chunk::storage::ChunkStorageTrait::get pub fn limited_get_mut(&mut self, pos: &ChunkPos) -> Option<&mut Option<Arc<RwLock<Chunk>>>> { if !self.in_range(pos) { return None; |
