diff options
| author | mat <github@matdoes.dev> | 2022-05-01 00:32:55 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-01 00:32:55 -0500 |
| commit | 4b1cfd1cf899fbbc3de8f72cbb160695c1e9ae70 (patch) | |
| tree | abd4e6bbd6a08ecc5532a04f667baa3d71aa1a8c /azalea-client/src | |
| parent | 42ca37554c987f2bdeda596a18f5d3989c9fc0d7 (diff) | |
| download | azalea-drasl-4b1cfd1cf899fbbc3de8f72cbb160695c1e9ae70.tar.xz | |
remove useless match things
Diffstat (limited to 'azalea-client/src')
| -rwxr-xr-x | azalea-client/src/connect.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index 3a4dfe79..b6915fe8 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -99,16 +99,13 @@ impl Client { println!("Got profile {:?}", p.game_profile); break conn.game(); } - LoginPacket::ServerboundHelloPacket(p) => { - println!("Got hello {:?}", p); - } LoginPacket::ClientboundLoginDisconnectPacket(p) => { println!("Got disconnect {:?}", p); } LoginPacket::ClientboundCustomQueryPacket(p) => { println!("Got custom query {:?}", p); } - LoginPacket::ServerboundKeyPacket(_) => todo!(), + _ => panic!("Unexpected packet {:?}", packet), }, Err(e) => { panic!("Error: {:?}", e); @@ -233,7 +230,7 @@ impl Client { GamePacket::ClientboundAddMobPacket(p) => { println!("Got add mob packet {:?}", p); } - GamePacket::ServerboundCustomPayloadPacket(_) => todo!(), + _ => panic!("Unexpected packet {:?}", packet), } println!(); } |
