aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-08 22:46:26 -0330
committermat <git@matdoes.dev>2025-06-08 22:46:26 -0330
commit3087b0c996dbd3fb9a1dbcac4bf5c32f992c2e5e (patch)
tree7d3e889f0f6c45be331d4396f4bdc90496defeef /azalea-protocol
parent338f931c51ab3665c7c18124ca3e35bfd2ff5ca0 (diff)
downloadazalea-drasl-3087b0c996dbd3fb9a1dbcac4bf5c32f992c2e5e.tar.xz
add support for panicking on warn/error in simulation tests
Diffstat (limited to 'azalea-protocol')
-rw-r--r--azalea-protocol/src/common/movements.rs5
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> {