diff options
| author | mat <git@matdoes.dev> | 2026-01-17 02:43:13 -0530 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-17 02:43:13 -0530 |
| commit | ddb21fdd4acf6e03fecef33b16f3acc25e4eaf30 (patch) | |
| tree | 9682ab52eac761f27c8f11a60eb99f63f1311e21 /azalea/src/pathfinder/world.rs | |
| parent | 02280dc6e2c559452f00eed9c5c23efa0d6cb5fe (diff) | |
| download | azalea-drasl-ddb21fdd4acf6e03fecef33b16f3acc25e4eaf30.tar.xz | |
move PathfinderHeap to a module
Diffstat (limited to 'azalea/src/pathfinder/world.rs')
| -rw-r--r-- | azalea/src/pathfinder/world.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/azalea/src/pathfinder/world.rs b/azalea/src/pathfinder/world.rs index ec2dbe80..9970de8d 100644 --- a/azalea/src/pathfinder/world.rs +++ b/azalea/src/pathfinder/world.rs @@ -29,12 +29,7 @@ pub struct CachedWorld { // we store `PalettedContainer`s instead of `Chunk`s or `Section`s because it doesn't contain // any unnecessary data like heightmaps or biomes. - cached_chunks: RefCell< - Vec<( - ChunkPos, - Vec<azalea_world::palette::PalettedContainer<BlockState>>, - )>, - >, + cached_chunks: RefCell<Vec<(ChunkPos, Box<[PalettedContainer<BlockState>]>)>>, last_chunk_cache_index: RefCell<Option<usize>>, cached_blocks: UnsafeCell<CachedSections>, @@ -194,7 +189,7 @@ impl CachedWorld { .sections .iter() .map(|section| section.states.clone()) - .collect::<Vec<PalettedContainer<BlockState>>>(); + .collect::<Box<[PalettedContainer<BlockState>]>>(); if section_index >= sections.len() { // y position is out of bounds |
