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-protocol/src/packets/game/s_set_structure_block.rs | |
| 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-protocol/src/packets/game/s_set_structure_block.rs')
| -rwxr-xr-x | 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 7f05a3a7..14b403ab 100755 --- a/azalea-protocol/src/packets/game/s_set_structure_block.rs +++ b/azalea-protocol/src/packets/game/s_set_structure_block.rs @@ -71,7 +71,7 @@ pub struct Flags { impl AzaleaRead for Flags { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { - let set = FixedBitSet::<3>::azalea_read(buf)?; + let set = FixedBitSet::<{ 3_usize.div_ceil(8) }>::azalea_read(buf)?; Ok(Self { ignore_entities: set.index(0), show_air: set.index(1), @@ -82,7 +82,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>::new(); + let mut set = FixedBitSet::<{ 3_usize.div_ceil(8) }>::new(); if self.ignore_entities { set.set(0); } |
