aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/serverbound_chat_packet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/serverbound_chat_packet.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/serverbound_chat_packet.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/azalea-protocol/src/packets/game/serverbound_chat_packet.rs b/azalea-protocol/src/packets/game/serverbound_chat_packet.rs
index 434474a2..1912d6a0 100755
--- a/azalea-protocol/src/packets/game/serverbound_chat_packet.rs
+++ b/azalea-protocol/src/packets/game/serverbound_chat_packet.rs
@@ -1,5 +1,5 @@
-use crate::packets::game::clientbound_player_chat_packet::LastSeenMessagesUpdate;
use azalea_buf::McBuf;
+use azalea_core::FixedBitSet;
use azalea_crypto::MessageSignature;
use azalea_protocol_macros::ServerboundGamePacket;
@@ -8,7 +8,13 @@ pub struct ServerboundChatPacket {
pub message: String,
pub timestamp: u64,
pub salt: u64,
- pub signature: MessageSignature,
- pub signed_preview: bool,
+ pub signature: Option<MessageSignature>,
pub last_seen_messages: LastSeenMessagesUpdate,
}
+
+#[derive(Clone, Debug, McBuf, Default)]
+pub struct LastSeenMessagesUpdate {
+ #[var]
+ pub offset: u32,
+ pub acknowledged: FixedBitSet<20>,
+}