diff options
| author | mat <github@matdoes.dev> | 2022-05-26 19:12:19 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-26 19:12:19 -0500 |
| commit | 0c0fec00655fd5850e2123cb6fc2da94731dd409 (patch) | |
| tree | 8b1e000486717e41d14100528ea200c2855fbe8f /azalea-client | |
| parent | 7c302b4b2937496bee20f7b50cb31af6cc4b4eeb (diff) | |
| download | azalea-drasl-0c0fec00655fd5850e2123cb6fc2da94731dd409.tar.xz | |
fix some packets
Diffstat (limited to 'azalea-client')
| -rwxr-xr-x | azalea-client/src/connect.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index e63c9b07..cb2bec9c 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -200,12 +200,12 @@ impl Client { let mut state = state.lock().await; - // write p into login.txt - std::io::Write::write_all( - &mut std::fs::File::create("login.txt").unwrap(), - format!("{:#?}", p).as_bytes(), - ) - .unwrap(); + // // write p into login.txt + // std::io::Write::write_all( + // &mut std::fs::File::create("login.txt").unwrap(), + // format!("{:#?}", p).as_bytes(), + // ) + // .unwrap(); state.player.entity.id = p.player_id; @@ -444,6 +444,9 @@ impl Client { GamePacket::ClientboundLevelParticlesPacket(p) => { println!("Got level particles packet {:?}", p); } + GamePacket::ClientboundServerDataPacket(p) => { + println!("Got server data packet {:?}", p); + } _ => panic!("Unexpected packet {:?}", packet), } } |
