aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src/position.rs
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-12-09 15:13:14 +0000
committerUbuntu <github@matdoes.dev>2022-12-09 15:13:14 +0000
commitca00dbab12ab7de0bba462b9814b9f491b23da69 (patch)
tree560bd906d9ca1fcb822290286e9bf5990826163a /azalea-core/src/position.rs
parentf0097612473d20ebac21e8ae5eba32bf32c2fe42 (diff)
parent70e2dfed16da8d5130460ea15b47701e622f4a9f (diff)
downloadazalea-drasl-ca00dbab12ab7de0bba462b9814b9f491b23da69.tar.xz
Merge branch 'main' of https://github.com/mat-1/azalea into main
Diffstat (limited to 'azalea-core/src/position.rs')
-rwxr-xr-xazalea-core/src/position.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs
index 6c18d147..ea54c60c 100755
--- a/azalea-core/src/position.rs
+++ b/azalea-core/src/position.rs
@@ -126,7 +126,8 @@ pub struct BlockPos {
vec3_impl!(BlockPos, i32);
impl BlockPos {
- /// Get the absolute center of a block position by adding 0.5 to each coordinate.
+ /// Get the absolute center of a block position by adding 0.5 to each
+ /// coordinate.
pub fn center(&self) -> Vec3 {
Vec3 {
x: self.x as f64 + 0.5,
@@ -176,7 +177,8 @@ impl ChunkBlockPos {
}
}
-/// The coordinates of a block inside a chunk section. Each coordinate must be in the range [0, 15].
+/// The coordinates of a block inside a chunk section. Each coordinate must be
+/// in the range [0, 15].
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct ChunkSectionBlockPos {
pub x: u8,