From 302752860c7c10f02479727fe3d6d3b086177604 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 24 Jul 2025 04:42:52 -0530 Subject: update movement code for 1.21.5 changes fixes grim flags --- azalea-protocol/src/common/movements.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/common/movements.rs b/azalea-protocol/src/common/movements.rs index e88fb87e..6475b46f 100644 --- a/azalea-protocol/src/common/movements.rs +++ b/azalea-protocol/src/common/movements.rs @@ -94,7 +94,8 @@ fn apply_change>(base: T, condition: bool, change: T) -> T { impl AzaleaRead for RelativeMovements { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result { // yes minecraft seriously wastes that many bits, smh - let set = FixedBitSet::<32>::azalea_read(buf)?; + let set = u32::azalea_read(buf)?; + let set = FixedBitSet::<32>::new_with_data(set.swap_bytes().to_be_bytes()); Ok(RelativeMovements { x: set.index(0), y: set.index(1), -- cgit v1.2.3