aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_set_command_block.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-12-11 03:25:36 +0000
committermat <git@matdoes.dev>2024-12-11 03:25:36 +0000
commit097a620de1a0139ca9a745ddc146c37e1d4695da (patch)
tree293a0187f7528afa48aa5ffa7e89acd10841c5ba /azalea-protocol/src/packets/game/s_set_command_block.rs
parent2feef494718009dbcb5c62ef1e58c84c36e8bcbf (diff)
downloadazalea-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_command_block.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/s_set_command_block.rs4
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);
}