From 12a9c8ce65b58f0c600fd7b9fc5d454ce228b420 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 14 Mar 2023 16:33:03 -0500 Subject: 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 --- azalea-protocol/src/read.rs | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'azalea-protocol/src/read.rs') 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::(&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"), - } - } -} -- cgit v1.2.3