From 097a620de1a0139ca9a745ddc146c37e1d4695da Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 11 Dec 2024 03:25:36 +0000 Subject: fix for latest nightly by changing the FixedBitSet generic to take bytes instead of bits --- azalea/src/pathfinder/world.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea/src') 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 { 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); -- cgit v1.2.3