aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_set_structure_block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/s_set_structure_block.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/s_set_structure_block.rs4
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);
}