diff options
Diffstat (limited to 'azalea-protocol/src/packets/game/s_set_command_block.rs')
| -rwxr-xr-x | azalea-protocol/src/packets/game/s_set_command_block.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/s_set_command_block.rs b/azalea-protocol/src/packets/game/s_set_command_block.rs index dacb79de..ea1af6bb 100755 --- a/azalea-protocol/src/packets/game/s_set_command_block.rs +++ b/azalea-protocol/src/packets/game/s_set_command_block.rs @@ -30,7 +30,7 @@ impl AzaleaRead for ServerboundSetCommandBlock { let command = String::azalea_read(buf)?; let mode = Mode::azalea_read(buf)?; - let set = FixedBitSet::<3>::azalea_read(buf)?; + let set = FixedBitSet::<{ 3_usize.div_ceil(8) }>::azalea_read(buf)?; Ok(Self { pos, command, @@ -48,7 +48,7 @@ impl AzaleaWrite for ServerboundSetCommandBlock { self.command.azalea_write(buf)?; self.mode.azalea_write(buf)?; - let mut set = FixedBitSet::<3>::new(); + let mut set = FixedBitSet::<{ 3_usize.div_ceil(8) }>::new(); if self.track_output { set.set(0); } |
