From 3087b0c996dbd3fb9a1dbcac4bf5c32f992c2e5e Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 8 Jun 2025 22:46:26 -0330 Subject: add support for panicking on warn/error in simulation tests --- azalea-protocol/src/common/movements.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'azalea-protocol/src') 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 { -- cgit v1.2.3