aboutsummaryrefslogtreecommitdiff
path: root/azalea-core
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-17 11:58:37 -1030
committermat <git@matdoes.dev>2026-01-17 11:58:37 -1030
commit74ef7d19b2bc4453f5368cc39c838582f2f3bafd (patch)
treecd133a77934f461b52db614eb10a99eb620f53e6 /azalea-core
parenta49c8d0b53fed223bab127704c604291ee77f921 (diff)
downloadazalea-drasl-74ef7d19b2bc4453f5368cc39c838582f2f3bafd.tar.xz
use more compact chunk section positions in pathfinder
Diffstat (limited to 'azalea-core')
-rw-r--r--azalea-core/src/position.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs
index 3f2a724f..f664957f 100644
--- a/azalea-core/src/position.rs
+++ b/azalea-core/src/position.rs
@@ -787,7 +787,7 @@ impl From<BlockPos> for ChunkPos {
impl From<BlockPos> for ChunkSectionPos {
#[inline]
fn from(pos: BlockPos) -> Self {
- ChunkSectionPos {
+ Self {
x: pos.x >> 4,
y: pos.y >> 4,
z: pos.z >> 4,
@@ -797,7 +797,7 @@ impl From<BlockPos> for ChunkSectionPos {
impl From<&BlockPos> for ChunkSectionPos {
#[inline]
fn from(pos: &BlockPos) -> Self {
- ChunkSectionPos {
+ Self {
x: pos.x >> 4,
y: pos.y >> 4,
z: pos.z >> 4,