From 7c49ca3c0d3f161feb041adfa27891a009d290bd Mon Sep 17 00:00:00 2001 From: ice_iix Date: Sat, 2 Nov 2019 13:43:00 -0700 Subject: [PATCH] Add missing time, nbt{_compound,}_tag command nodes. Fixes #227 --- protocol/src/protocol/packet.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocol/src/protocol/packet.rs b/protocol/src/protocol/packet.rs index 10ade72..a25c865 100644 --- a/protocol/src/protocol/packet.rs +++ b/protocol/src/protocol/packet.rs @@ -2724,6 +2724,7 @@ pub enum CommandProperty { GameProfile, BlockPos, ColumnPos, + Time, Vec3, Vec2, BlockState, @@ -2735,6 +2736,8 @@ pub enum CommandProperty { Message, Nbt, NbtPath, + NbtTag, + NbtCompoundTag, Objective, ObjectiveCriteria, Operation, @@ -2824,6 +2827,7 @@ impl Serializable for CommandNode { "minecraft:game_profile" => CommandProperty::GameProfile, "minecraft:block_pos" => CommandProperty::BlockPos, "minecraft:column_pos" => CommandProperty::ColumnPos, + "minecraft:time" => CommandProperty::Time, "minecraft:vec3" => CommandProperty::Vec3, "minecraft:vec2" => CommandProperty::Vec2, "minecraft:block_state" => CommandProperty::BlockState, @@ -2835,6 +2839,8 @@ impl Serializable for CommandNode { "minecraft:message" => CommandProperty::Message, "minecraft:nbt" => CommandProperty::Nbt, "minecraft:nbt_path" => CommandProperty::NbtPath, + "minecraft:nbt_tag" => CommandProperty::NbtTag, + "minecraft:nbt_compound_tag" => CommandProperty::NbtCompoundTag, "minecraft:objective" => CommandProperty::Objective, "minecraft:objective_criteria" => CommandProperty::ObjectiveCriteria, "minecraft:operation" => CommandProperty::Operation,