From 74ef7d19b2bc4453f5368cc39c838582f2f3bafd Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 17 Jan 2026 11:58:37 -1030 Subject: use more compact chunk section positions in pathfinder --- azalea/src/pathfinder/moves/basic.rs | 2 +- azalea/src/pathfinder/moves/mod.rs | 2 +- azalea/src/pathfinder/moves/parkour.rs | 2 +- azalea/src/pathfinder/moves/uncommon.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea/src/pathfinder/moves') diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs index 69c949d7..1e8b7c64 100644 --- a/azalea/src/pathfinder/moves/basic.rs +++ b/azalea/src/pathfinder/moves/basic.rs @@ -9,7 +9,7 @@ use azalea_core::{ use super::{Edge, ExecuteCtx, IsReachedCtx, MoveData, PathfinderCtx, default_is_reached}; use crate::pathfinder::{ - astar, costs::*, moves::BARITONE_COMPAT, player_pos_to_block_pos, rel_block_pos::RelBlockPos, + astar, costs::*, moves::BARITONE_COMPAT, player_pos_to_block_pos, positions::RelBlockPos, }; pub fn basic_move(ctx: &mut PathfinderCtx, node: RelBlockPos) { diff --git a/azalea/src/pathfinder/moves/mod.rs b/azalea/src/pathfinder/moves/mod.rs index e62ae516..95d3ae35 100644 --- a/azalea/src/pathfinder/moves/mod.rs +++ b/azalea/src/pathfinder/moves/mod.rs @@ -23,7 +23,7 @@ use super::{ astar, custom_state::CustomPathfinderStateRef, mining::MiningCache, - rel_block_pos::RelBlockPos, + positions::RelBlockPos, world::{CachedWorld, is_block_state_passable}, }; use crate::{ diff --git a/azalea/src/pathfinder/moves/parkour.rs b/azalea/src/pathfinder/moves/parkour.rs index 09f4078a..b6b97465 100644 --- a/azalea/src/pathfinder/moves/parkour.rs +++ b/azalea/src/pathfinder/moves/parkour.rs @@ -3,7 +3,7 @@ use azalea_core::{direction::CardinalDirection, position::BlockPos}; use tracing::trace; use super::{Edge, ExecuteCtx, IsReachedCtx, MoveData, PathfinderCtx}; -use crate::pathfinder::{astar, costs::*, player_pos_to_block_pos, rel_block_pos::RelBlockPos}; +use crate::pathfinder::{astar, costs::*, player_pos_to_block_pos, positions::RelBlockPos}; pub fn parkour_move(ctx: &mut PathfinderCtx, node: RelBlockPos) { if !ctx.world.is_block_solid(node.down(1)) { diff --git a/azalea/src/pathfinder/moves/uncommon.rs b/azalea/src/pathfinder/moves/uncommon.rs index 43df3334..bc85333e 100644 --- a/azalea/src/pathfinder/moves/uncommon.rs +++ b/azalea/src/pathfinder/moves/uncommon.rs @@ -9,7 +9,7 @@ use crate::pathfinder::{ BARITONE_COMPAT, MoveData, PathfinderCtx, basic::{descend_is_reached, execute_descend_move}, }, - rel_block_pos::RelBlockPos, + positions::RelBlockPos, }; pub fn uncommon_move(ctx: &mut PathfinderCtx, node: RelBlockPos) { -- cgit v1.2.3