diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-03-25 11:17:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 11:17:39 -0500 |
| commit | ef357fdf3667f3ded03203fc0f7cdec48a01ad8f (patch) | |
| tree | 6e7429c62a22fec1988278f63554c93bdd905a5d /azalea-protocol/src/packets/game/c_commands.rs | |
| parent | 8af265e48bf9f3d5263c074d034770e4216bb3f3 (diff) | |
| download | azalea-drasl-ef357fdf3667f3ded03203fc0f7cdec48a01ad8f.tar.xz | |
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
Diffstat (limited to 'azalea-protocol/src/packets/game/c_commands.rs')
| -rwxr-xr-x | azalea-protocol/src/packets/game/c_commands.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<Self, BufReadError> { 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); |
