aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src')
-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> {