aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/c_commands.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/c_commands.rs4
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);