aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_set_command_block.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-30 12:59:08 -1345
committermat <git@matdoes.dev>2025-05-30 12:59:08 -1345
commita64c6505049082175224802c5be51ac8f0cf4677 (patch)
tree443877d470fed94810b4b7180b2584dd5ae3fc9d /azalea-protocol/src/packets/game/s_set_command_block.rs
parentcfdd8e690f230bc84fc126d5a8bfa13df0f6d781 (diff)
downloadazalea-drasl-a64c6505049082175224802c5be51ac8f0cf4677.tar.xz
make fixedbitset require generic const exprs again :3
Diffstat (limited to 'azalea-protocol/src/packets/game/s_set_command_block.rs')
-rw-r--r--azalea-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 ea1af6bb..dacb79de 100644
--- 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_usize.div_ceil(8) }>::azalea_read(buf)?;
+ let set = FixedBitSet::<3>::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_usize.div_ceil(8) }>::new();
+ let mut set = FixedBitSet::<3>::new();
if self.track_output {
set.set(0);
}