diff options
| author | mat <git@matdoes.dev> | 2025-07-24 04:42:52 -0530 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-07-24 04:42:52 -0530 |
| commit | 302752860c7c10f02479727fe3d6d3b086177604 (patch) | |
| tree | 5088f051ed9a2e816b17966513c6494e69626728 /azalea-protocol/src/common | |
| parent | 45f89b48e425262974a993adc0774dcbcad397fa (diff) | |
| download | azalea-drasl-302752860c7c10f02479727fe3d6d3b086177604.tar.xz | |
update movement code for 1.21.5 changes
fixes grim flags
Diffstat (limited to 'azalea-protocol/src/common')
| -rw-r--r-- | azalea-protocol/src/common/movements.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<T: Add<Output = T>>(base: T, condition: bool, change: T) -> T { impl AzaleaRead for RelativeMovements { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { // 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), |
