aboutsummaryrefslogtreecommitdiff
path: root/azalea-core
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-08-29 21:10:15 -0500
committermat <github@matdoes.dev>2022-08-29 21:10:15 -0500
commitc1af5d15e3754bbf2d71d704fb089d760061e3c7 (patch)
tree55bdb92cbcb924bfefbcb78284f8417c6d05e8cf /azalea-core
parentd9d7b87d6170a4a087f1919d6efa390db6932083 (diff)
downloadazalea-drasl-c1af5d15e3754bbf2d71d704fb089d760061e3c7.tar.xz
physics stuff
Diffstat (limited to 'azalea-core')
-rw-r--r--azalea-core/src/position.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs
index f54510b5..6a0de350 100644
--- a/azalea-core/src/position.rs
+++ b/azalea-core/src/position.rs
@@ -303,6 +303,7 @@ const X_OFFSET: u64 = PACKED_Y_LENGTH + PACKED_Z_LENGTH;
impl McBufReadable for BlockPos {
fn read_from(buf: &mut impl Read) -> Result<Self, BufReadError> {
let val = u64::read_from(buf)?;
+ println!("reading blockpos from {}", val);
let x = (val << 64 - X_OFFSET - PACKED_X_LENGTH >> 64 - PACKED_X_LENGTH) as i32;
let y = (val << 64 - PACKED_Y_LENGTH >> 64 - PACKED_Y_LENGTH) as i32;
let z = (val << 64 - Z_OFFSET - PACKED_Z_LENGTH >> 64 - PACKED_Z_LENGTH) as i32;