aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-21 15:25:46 +0000
committermat <github@matdoes.dev>2022-04-21 15:25:46 +0000
commit2c848ebaa59781462aba6da428c8dfcc51dbacf8 (patch)
tree5428faac33031b213094239ae60271f1d109eaa5 /azalea-protocol/src/packets/game
parent298d30ad08d5efe8c94f1865909bafc220a8cfac (diff)
downloadazalea-drasl-2c848ebaa59781462aba6da428c8dfcc51dbacf8.tar.xz
Set carried item and update tags packets
Diffstat (limited to 'azalea-protocol/src/packets/game')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs2
-rw-r--r--azalea-protocol/src/packets/game/mod.rs6
2 files changed, 5 insertions, 3 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs b/azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs
index 402923c9..f4f528cf 100644
--- a/azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_player_abilities_packet.rs
@@ -21,7 +21,6 @@ pub struct PlayerAbilitiesFlags {
pub instant_break: bool,
}
-// Difficulty
#[async_trait]
impl McBufReadable for PlayerAbilitiesFlags {
async fn read_into<R>(buf: &mut R) -> Result<Self, String>
@@ -38,7 +37,6 @@ impl McBufReadable for PlayerAbilitiesFlags {
}
}
-// Difficulty
impl McBufWritable for PlayerAbilitiesFlags {
fn write_into(&self, buf: &mut Vec<u8>) -> Result<(), std::io::Error> {
let mut byte = 0;
diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs
index 38630a0e..e150606c 100644
--- a/azalea-protocol/src/packets/game/mod.rs
+++ b/azalea-protocol/src/packets/game/mod.rs
@@ -3,6 +3,8 @@ pub mod clientbound_custom_payload_packet;
pub mod clientbound_declare_commands_packet;
pub mod clientbound_login_packet;
pub mod clientbound_player_abilities_packet;
+pub mod clientbound_set_carried_item_packet;
+pub mod clientbound_update_tags_packet;
pub mod clientbound_update_view_distance_packet;
use packet_macros::declare_state_packets;
@@ -16,6 +18,8 @@ declare_state_packets!(
0x18: clientbound_custom_payload_packet::ClientboundCustomPayloadPacket,
0x26: clientbound_login_packet::ClientboundLoginPacket,
0x32: clientbound_player_abilities_packet::ClientboundPlayerAbilitiesPacket,
- 0x4a: clientbound_update_view_distance_packet::ClientboundUpdateViewDistancePacket
+ 0x48: clientbound_set_carried_item_packet::ClientboundSetCarriedItemPacket,
+ 0x4a: clientbound_update_view_distance_packet::ClientboundUpdateViewDistancePacket,
+ 0x67: clientbound_update_tags_packet::ClientboundUpdateTagsPacket
}
);