From d88ca2d86530e48f60fc1ff275de15a96e2a1779 Mon Sep 17 00:00:00 2001 From: EightFactorial Date: Tue, 21 Feb 2023 10:13:06 -0800 Subject: Make things public (#71) * Make struct data pub * Add derives * Rename packet fields * Make Palette structs pub --- azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs | 2 +- azalea-protocol/src/packets/game/serverbound_chat_ack_packet.rs | 2 +- azalea-protocol/src/packets/game/serverbound_chat_packet.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs b/azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs index d09768c7..7cf507b4 100755 --- a/azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_update_tags_packet.rs @@ -18,7 +18,7 @@ pub struct Tags { } #[derive(Clone, Debug)] -pub struct TagMap(HashMap>); +pub struct TagMap(pub HashMap>); impl McBufReadable for TagMap { fn read_from(buf: &mut Cursor<&[u8]>) -> Result { diff --git a/azalea-protocol/src/packets/game/serverbound_chat_ack_packet.rs b/azalea-protocol/src/packets/game/serverbound_chat_ack_packet.rs index 998e96d2..eaf285cb 100755 --- a/azalea-protocol/src/packets/game/serverbound_chat_ack_packet.rs +++ b/azalea-protocol/src/packets/game/serverbound_chat_ack_packet.rs @@ -4,5 +4,5 @@ use azalea_protocol_macros::ServerboundGamePacket; #[derive(Clone, Debug, McBuf, ServerboundGamePacket)] pub struct ServerboundChatAckPacket { #[var] - pub offset: u32, + pub messages: u32, } diff --git a/azalea-protocol/src/packets/game/serverbound_chat_packet.rs b/azalea-protocol/src/packets/game/serverbound_chat_packet.rs index 1912d6a0..a19a9aa7 100755 --- a/azalea-protocol/src/packets/game/serverbound_chat_packet.rs +++ b/azalea-protocol/src/packets/game/serverbound_chat_packet.rs @@ -15,6 +15,6 @@ pub struct ServerboundChatPacket { #[derive(Clone, Debug, McBuf, Default)] pub struct LastSeenMessagesUpdate { #[var] - pub offset: u32, + pub messages: u32, pub acknowledged: FixedBitSet<20>, } -- cgit v1.2.3