From ef357fdf3667f3ded03203fc0f7cdec48a01ad8f Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 25 Mar 2025 11:17:39 -0500 Subject: 1.21.5 (#198) * 25w02a * move item_components codegen to a different module * remove outdated test * 25w03a * start updating to 24w09b * 1.21.5-pre2 * fix broken packets * 1.21.5-rc2 * merge main * delete unused acket_handling * 1.21.5 --- azalea-protocol/src/packets/game/c_commands.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'azalea-protocol/src/packets/game/c_commands.rs') diff --git a/azalea-protocol/src/packets/game/c_commands.rs b/azalea-protocol/src/packets/game/c_commands.rs index c0ac27b2..cd21ddd1 100755 --- a/azalea-protocol/src/packets/game/c_commands.rs +++ b/azalea-protocol/src/packets/game/c_commands.rs @@ -91,6 +91,7 @@ pub enum BrigadierString { GreedyPhrase = 2, } +// see ArgumentTypeInfo #[derive(Debug, Clone, AzBuf, PartialEq)] pub enum BrigadierParser { Bool, @@ -140,6 +141,7 @@ pub enum BrigadierParser { ResourceOrTagKey { registry_key: ResourceLocation }, Resource { registry_key: ResourceLocation }, ResourceKey { registry_key: ResourceLocation }, + ResourceSelector { registry_key: ResourceLocation }, TemplateMirror, TemplateRotation, Heightmap, @@ -182,7 +184,7 @@ impl AzaleaRead for BrigadierNodeStub { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result { let flags = FixedBitSet::<{ 8_usize.div_ceil(8) }>::azalea_read(buf)?; if flags.index(5) || flags.index(6) || flags.index(7) { - warn!("Warning: The flags from a Brigadier node are over 31. This is probably a bug.",); + warn!("The flags from a Brigadier node are over 31. This is a bug, BrigadierParser probably needs updating.",); } let node_type = u8::from(flags.index(0)) + (u8::from(flags.index(1)) * 2); -- cgit v1.2.3