aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-30 12:59:08 -1345
committermat <git@matdoes.dev>2025-05-30 12:59:08 -1345
commita64c6505049082175224802c5be51ac8f0cf4677 (patch)
tree443877d470fed94810b4b7180b2584dd5ae3fc9d /azalea/src
parentcfdd8e690f230bc84fc126d5a8bfa13df0f6d781 (diff)
downloadazalea-drasl-a64c6505049082175224802c5be51ac8f0cf4677.tar.xz
make fixedbitset require generic const exprs again :3
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/pathfinder/world.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/azalea/src/pathfinder/world.rs b/azalea/src/pathfinder/world.rs
index 940a7c84..013f7c2d 100644
--- a/azalea/src/pathfinder/world.rs
+++ b/azalea/src/pathfinder/world.rs
@@ -82,11 +82,11 @@ impl CachedSections {
pub struct CachedSection {
pub pos: ChunkSectionPos,
/// Blocks that we can fully pass through (like air).
- pub passable_bitset: FixedBitSet<{ 4096_usize.div_ceil(8) }>,
+ pub passable_bitset: FixedBitSet<4096>,
/// Blocks that we can stand on and do parkour from.
- pub solid_bitset: FixedBitSet<{ 4096_usize.div_ceil(8) }>,
+ pub solid_bitset: FixedBitSet<4096>,
/// Blocks that we can stand on but might not be able to parkour from.
- pub standable_bitset: FixedBitSet<{ 4096_usize.div_ceil(8) }>,
+ pub standable_bitset: FixedBitSet<4096>,
}
impl CachedWorld {
@@ -195,9 +195,9 @@ 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_usize.div_ceil(8) }>::new();
- let mut solid_bitset = FixedBitSet::<{ 4096_usize.div_ceil(8) }>::new();
- let mut standable_bitset = FixedBitSet::<{ 4096_usize.div_ceil(8) }>::new();
+ let mut passable_bitset = FixedBitSet::<4096>::new();
+ let mut solid_bitset = FixedBitSet::<4096>::new();
+ let mut standable_bitset = FixedBitSet::<4096>::new();
for i in 0..4096 {
let block_state = section.get_at_index(i);
if is_block_state_passable(block_state) {