diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-03-14 16:33:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 16:33:03 -0500 |
| commit | 12a9c8ce65b58f0c600fd7b9fc5d454ce228b420 (patch) | |
| tree | 9bada4164ea12fa533d413c0c7090f4779b519f1 /azalea-protocol/src/read.rs | |
| parent | b792e21d1c2b7dba04d88dba479ed451104a6514 (diff) | |
| download | azalea-drasl-12a9c8ce65b58f0c600fd7b9fc5d454ce228b420.tar.xz | |
1.19.4 (#57)
* 23w03a
* 23w04a
* 23w05a
* 23w06a
* fix
* 23w07a
mojang broke their json data generator so some stuff is missing
* didn't mean to commit that file here
* 1.19.4-pre2
* fix
* 1.19.4-pre3
* fix
* how did these packets get here
* 1.19.4-pre4
* 1.19.4-rc1
* 1.19.4-rc2
* 1.19.4-rc3
* merge main
* remove debugging code
* 1.19.4
Diffstat (limited to 'azalea-protocol/src/read.rs')
| -rwxr-xr-x | azalea-protocol/src/read.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 5436fb1d..d92897b9 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -257,29 +257,3 @@ where Ok(packet) } - -#[cfg(test)] -mod tests { - use super::*; - use crate::packets::game::ClientboundGamePacket; - use std::io::Cursor; - - #[test] - fn test_read_packet() { - let mut buf: Cursor<&[u8]> = Cursor::new(&[ - 56, 64, 85, 58, 141, 138, 71, 146, 193, 64, 88, 0, 0, 0, 0, 0, 0, 64, 60, 224, 105, 34, - 119, 8, 228, 67, 50, 51, 68, 194, 177, 230, 101, 0, 17, 0, - ]); - let packet = packet_decoder::<ClientboundGamePacket>(&mut buf).unwrap(); - match &packet { - ClientboundGamePacket::PlayerPosition(p) => { - assert_eq!(p.id, 17); - assert_eq!(p.x, 84.91488892545296); - assert_eq!(p.y, 96.0); - assert_eq!(p.z, 28.876604227124417); - assert_eq!(p.dismount_vehicle, false); - } - _ => panic!("Wrong packet type"), - } - } -} |
