diff options
| author | mat <git@matdoes.dev> | 2024-12-11 03:25:36 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-12-11 03:25:36 +0000 |
| commit | 097a620de1a0139ca9a745ddc146c37e1d4695da (patch) | |
| tree | 293a0187f7528afa48aa5ffa7e89acd10841c5ba /azalea/src | |
| parent | 2feef494718009dbcb5c62ef1e58c84c36e8bcbf (diff) | |
| download | azalea-drasl-097a620de1a0139ca9a745ddc146c37e1d4695da.tar.xz | |
fix for latest nightly by changing the FixedBitSet generic to take bytes instead of bits
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/pathfinder/world.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea/src/pathfinder/world.rs b/azalea/src/pathfinder/world.rs index 3a004f65..924ee33a 100644 --- a/azalea/src/pathfinder/world.rs +++ b/azalea/src/pathfinder/world.rs @@ -77,8 +77,8 @@ impl CachedSections { pub struct CachedSection { pub pos: ChunkSectionPos, - pub passable_bitset: FixedBitSet<4096>, - pub solid_bitset: FixedBitSet<4096>, + pub passable_bitset: FixedBitSet<{ 4096_usize.div_ceil(8) }>, + pub solid_bitset: FixedBitSet<{ 4096_usize.div_ceil(8) }>, } impl CachedWorld { @@ -182,8 +182,8 @@ impl CachedWorld { fn calculate_bitsets_for_section(&self, section_pos: ChunkSectionPos) -> Option<CachedSection> { self.with_section(section_pos, |section| { - let mut passable_bitset = FixedBitSet::<4096>::new(); - let mut solid_bitset = FixedBitSet::<4096>::new(); + let mut passable_bitset = FixedBitSet::<{ 4096_usize.div_ceil(8) }>::new(); + let mut solid_bitset = FixedBitSet::<{ 4096_usize.div_ceil(8) }>::new(); for i in 0..4096 { let block_state_id = section.get_at_index(i); let block_state = BlockState::try_from(block_state_id).unwrap_or(BlockState::AIR); |
