diff options
| author | mat <github@matdoes.dev> | 2022-04-24 16:18:51 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-24 16:18:51 -0500 |
| commit | b7641ff308aab7840d2a2253ae50f8ee496b2a97 (patch) | |
| tree | f33eb83f119da5aae08f56a5c7543db15594b01d /azalea-client | |
| parent | 97d392f4e5721d8aa8940f253918965ff0b40348 (diff) | |
| download | azalea-drasl-b7641ff308aab7840d2a2253ae50f8ee496b2a97.tar.xz | |
1.18.2 support
Diffstat (limited to 'azalea-client')
| -rwxr-xr-x | azalea-client/src/connect.rs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index 7e6dba51..6e58bee6 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -48,10 +48,18 @@ pub async fn join_server(address: &ServerAddress) -> Result<(), String> { println!("Got profile {:?}", p.game_profile); break conn.game(); } - _ => panic!("unhandled packet"), + LoginPacket::ServerboundHelloPacket(p) => { + println!("Got hello {:?}", p); + } + LoginPacket::ClientboundLoginDisconnectPacket(p) => { + println!("Got disconnect {:?}", p); + } + LoginPacket::ClientboundCustomQueryPacket(p) => { + println!("Got custom query {:?}", p); + } }, Err(e) => { - println!("Error: {:?}", e); + panic!("Error: {:?}", e); } } }; @@ -85,6 +93,9 @@ pub async fn join_server(address: &ServerAddress) -> Result<(), String> { GamePacket::ClientboundUpdateTagsPacket(p) => { println!("Got update tags packet {:?}", p); } + GamePacket::ClientboundDisconnectPacket(p) => { + println!("Got login disconnect packet {:?}", p); + } }, Err(e) => { panic!("Error: {:?}", e); |
