diff options
| author | mat <git@matdoes.dev> | 2025-05-30 12:59:08 -1345 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-30 12:59:08 -1345 |
| commit | a64c6505049082175224802c5be51ac8f0cf4677 (patch) | |
| tree | 443877d470fed94810b4b7180b2584dd5ae3fc9d /azalea-protocol/src/packets/game/s_set_structure_block.rs | |
| parent | cfdd8e690f230bc84fc126d5a8bfa13df0f6d781 (diff) | |
| download | azalea-drasl-a64c6505049082175224802c5be51ac8f0cf4677.tar.xz | |
make fixedbitset require generic const exprs again :3
Diffstat (limited to 'azalea-protocol/src/packets/game/s_set_structure_block.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/s_set_structure_block.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/s_set_structure_block.rs b/azalea-protocol/src/packets/game/s_set_structure_block.rs index b2f2aeb1..360d34fc 100644 --- a/azalea-protocol/src/packets/game/s_set_structure_block.rs +++ b/azalea-protocol/src/packets/game/s_set_structure_block.rs @@ -73,7 +73,7 @@ pub struct Flags { impl AzaleaRead for Flags { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { - let set = FixedBitSet::<{ 3_usize.div_ceil(8) }>::azalea_read(buf)?; + let set = FixedBitSet::<3>::azalea_read(buf)?; Ok(Self { ignore_entities: set.index(0), show_air: set.index(1), @@ -84,7 +84,7 @@ impl AzaleaRead for Flags { impl AzaleaWrite for Flags { fn azalea_write(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { - let mut set = FixedBitSet::<{ 3_usize.div_ceil(8) }>::new(); + let mut set = FixedBitSet::<3>::new(); if self.ignore_entities { set.set(0); } |
