From 097a620de1a0139ca9a745ddc146c37e1d4695da Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 11 Dec 2024 03:25:36 +0000 Subject: fix for latest nightly by changing the FixedBitSet generic to take bytes instead of bits --- azalea-protocol/src/packets/game/s_set_command_block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-protocol/src/packets/game/s_set_command_block.rs') 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); } -- cgit v1.2.3