aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-08 18:38:22 -0500
committermat <github@matdoes.dev>2022-05-08 18:38:22 -0500
commit7c742347a7e16ac28fcc88e3bab30e68695763e4 (patch)
treeac33cff59db9eb9bf3c2f33125e53eb0df0e073c /azalea-client/src
parenta9a8834b3aa78b1b85b16e738be8bd9105ef23c0 (diff)
downloadazalea-drasl-7c742347a7e16ac28fcc88e3bab30e68695763e4.tar.xz
azalea-chat now checks language files
Diffstat (limited to 'azalea-client/src')
-rwxr-xr-xazalea-client/src/connect.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs
index 2df0e9d2..4ce755de 100755
--- a/azalea-client/src/connect.rs
+++ b/azalea-client/src/connect.rs
@@ -4,6 +4,7 @@ use azalea_protocol::{
connect::{GameConnection, HandshakeConnection},
packets::{
game::{
+ clientbound_chat_packet::ClientboundChatPacket,
serverbound_custom_payload_packet::ServerboundCustomPayloadPacket,
serverbound_keep_alive_packet::ServerboundKeepAlivePacket, GamePacket,
},
@@ -44,6 +45,7 @@ pub struct Client {
#[derive(Debug, Clone)]
pub enum Event {
Login,
+ Chat(ClientboundChatPacket),
}
/// Whether we should ignore errors when decoding packets.
@@ -309,6 +311,7 @@ impl Client {
}
GamePacket::ClientboundChatPacket(p) => {
println!("Got chat packet {:?}", p);
+ tx.send(Event::Chat(p.clone())).unwrap();
}
GamePacket::ClientboundSoundPacket(p) => {
println!("Got sound packet {:?}", p);