diff options
| author | mat <git@matdoes.dev> | 2025-06-08 22:46:26 -0330 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-08 22:46:26 -0330 |
| commit | 3087b0c996dbd3fb9a1dbcac4bf5c32f992c2e5e (patch) | |
| tree | 7d3e889f0f6c45be331d4396f4bdc90496defeef /azalea-protocol/src/common | |
| parent | 338f931c51ab3665c7c18124ca3e35bfd2ff5ca0 (diff) | |
| download | azalea-drasl-3087b0c996dbd3fb9a1dbcac4bf5c32f992c2e5e.tar.xz | |
add support for panicking on warn/error in simulation tests
Diffstat (limited to 'azalea-protocol/src/common')
| -rw-r--r-- | azalea-protocol/src/common/movements.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/azalea-protocol/src/common/movements.rs b/azalea-protocol/src/common/movements.rs index 7ab7fc2f..ffc3452f 100644 --- a/azalea-protocol/src/common/movements.rs +++ b/azalea-protocol/src/common/movements.rs @@ -28,6 +28,11 @@ pub struct RelativeMovements { pub delta_z: bool, pub rotate_delta: bool, } +impl RelativeMovements { + pub fn all_absolute() -> Self { + RelativeMovements::default() + } +} impl AzaleaRead for RelativeMovements { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> { |
