diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-10-16 23:08:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-16 23:08:39 -0500 |
| commit | 0f88e05a0cfe43c910f130f8e70f51055d9f6fd2 (patch) | |
| tree | dd1b899c7b90ae80b13bb0c84b44615dde63c7b1 /azalea-protocol | |
| parent | ab9e50b1307012b698d826a1f4d04b347ee2203f (diff) | |
| download | azalea-drasl-0f88e05a0cfe43c910f130f8e70f51055d9f6fd2.tar.xz | |
Add chat function (#28)
* add Client::chat
* make the default bot do chat
Diffstat (limited to 'azalea-protocol')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs | 2 | ||||
| -rw-r--r-- | azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs b/azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs index c6013fc2..e961828e 100644 --- a/azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs @@ -68,7 +68,7 @@ pub struct LastSeenMessagesEntry { pub last_signature: MessageSignature, } -#[derive(Clone, Debug, McBuf)] +#[derive(Clone, Debug, McBuf, Default)] pub struct LastSeenMessagesUpdate { pub last_seen: Vec<LastSeenMessagesEntry>, pub last_received: Option<LastSeenMessagesEntry>, diff --git a/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs b/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs index 426ca882..a840e44f 100644 --- a/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs +++ b/azalea-protocol/src/packets/game/serverbound_chat_command_packet.rs @@ -9,7 +9,7 @@ pub struct ServerboundChatCommandPacket { pub command: String, // TODO: Choose a real timestamp type pub timestamp: u64, - pub salt: i64, + pub salt: u64, pub argument_signatures: Vec<ArgumentSignature>, pub signed_preview: bool, pub last_seen_messages: LastSeenMessagesUpdate, |
