protocol: add missing minecraft:uuid CommandNode property

Fixes thread '<unnamed>' panicked at 'unsupported command node parser minecraft:uuid', protocol/src/protocol/packet.rs:3098:22
This was added in https://wiki.vg/index.php?title=Command_Data&diff=15659&oldid=14622
This commit is contained in:
ice_iix 2020-07-04 14:48:33 -07:00
parent eb703f0776
commit 4e9cda2929
1 changed files with 2 additions and 0 deletions

View File

@ -2968,6 +2968,7 @@ pub enum CommandProperty {
ItemEnchantment,
EntitySummon,
Dimension,
UUID,
}
impl Serializable for CommandNode {
@ -3095,6 +3096,7 @@ impl Serializable for CommandNode {
"minecraft:item_enchantment" => CommandProperty::ItemEnchantment,
"minecraft:entity_summon" => CommandProperty::EntitySummon,
"minecraft:dimension" => CommandProperty::Dimension,
"minecraft:uuid" => CommandProperty::UUID,
_ => panic!("unsupported command node parser {}", parse),
})
} else {