diff options
Diffstat (limited to 'azalea-protocol/src/packets/game/s_player_input.rs')
| -rwxr-xr-x | azalea-protocol/src/packets/game/s_player_input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/s_player_input.rs b/azalea-protocol/src/packets/game/s_player_input.rs index bd4ba970..6dbd47cd 100755 --- a/azalea-protocol/src/packets/game/s_player_input.rs +++ b/azalea-protocol/src/packets/game/s_player_input.rs @@ -18,7 +18,7 @@ pub struct ServerboundPlayerInput { impl AzaleaRead for ServerboundPlayerInput { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { - let set = FixedBitSet::<7>::azalea_read(buf)?; + let set = FixedBitSet::<{ 7_usize.div_ceil(8) }>::azalea_read(buf)?; Ok(Self { forward: set.index(0), backward: set.index(1), @@ -33,7 +33,7 @@ impl AzaleaRead for ServerboundPlayerInput { impl AzaleaWrite for ServerboundPlayerInput { fn azalea_write(&self, buf: &mut impl std::io::Write) -> Result<(), std::io::Error> { - let mut set = FixedBitSet::<7>::new(); + let mut set = FixedBitSet::<{ 7_usize.div_ceil(8) }>::new(); if self.forward { set.set(0); } |
