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_player_input.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_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); } |
