aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-01 15:19:51 -0500
committermat <github@matdoes.dev>2022-05-01 15:19:51 -0500
commit388b0fc0f294f1b7c47853e34cedf2b9a1b4e49d (patch)
tree7463acc478252e7f96931132a9a823ae365df606 /azalea-client/src
parent1a68d55eaf8cb2a108bf850776ee81c74ebaaf5a (diff)
downloadazalea-drasl-388b0fc0f294f1b7c47853e34cedf2b9a1b4e49d.tar.xz
ClientboundUpdateAttributesPacket & ClientboundEntityVelocityPacket
Diffstat (limited to 'azalea-client/src')
-rwxr-xr-xazalea-client/src/connect.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs
index ec3e122f..d28f2067 100755
--- a/azalea-client/src/connect.rs
+++ b/azalea-client/src/connect.rs
@@ -43,6 +43,7 @@ pub enum Event {
Login,
}
+/// Whether we should ignore errors when decoding packets.
const IGNORE_ERRORS: bool = false;
impl Client {
@@ -245,6 +246,12 @@ impl Client {
GamePacket::ClientboundSetEntityDataPacket(p) => {
println!("Got set entity data packet {:?}", p);
}
+ GamePacket::ClientboundUpdateAttributesPacket(p) => {
+ println!("Got update attributes packet {:?}", p);
+ }
+ GamePacket::ClientboundEntityVelocityPacket(p) => {
+ println!("Got entity velocity packet {:?}", p);
+ }
_ => panic!("Unexpected packet {:?}", packet),
}
println!();