aboutsummaryrefslogtreecommitdiff
path: root/azalea-client
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-01 14:03:15 -0500
committermat <github@matdoes.dev>2022-05-01 14:03:15 -0500
commit766b29006511e22eee8d6aae199c40203e5dcb0c (patch)
tree26b47c5ce61007e0b7abbb38d80009d7983cda29 /azalea-client
parent9dacd90abcfaa62ade1e4f130ed53da2c9facdbc (diff)
downloadazalea-drasl-766b29006511e22eee8d6aae199c40203e5dcb0c.tar.xz
Ignore unknown packets
Diffstat (limited to 'azalea-client')
-rwxr-xr-xazalea-client/src/connect.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs
index c09d7d9e..0affec8f 100755
--- a/azalea-client/src/connect.rs
+++ b/azalea-client/src/connect.rs
@@ -147,7 +147,10 @@ impl Client {
match r {
Ok(packet) => Self::handle(&packet, &tx, &state, &conn).await,
Err(e) => {
- panic!("Error: {:?}", e);
+ println!("Error: {:?}", e);
+ if e == "length wider than 21-bit" {
+ panic!();
+ }
}
};
}
@@ -233,6 +236,9 @@ impl Client {
GamePacket::ClientboundAddEntityPacket(p) => {
println!("Got add entity packet {:?}", p);
}
+ GamePacket::ClientboundSetEntityDataPacket(p) => {
+ println!("Got set entity data packet {:?}", p);
+ }
_ => panic!("Unexpected packet {:?}", packet),
}
println!();