patch_path

Function patch_path 

Source
pub fn patch_path(
    patch_nodes: RangeInclusive<usize>,
    executing_path: &mut ExecutingPath,
    pathfinder: &mut Pathfinder,
    inventory: &Inventory,
    entity: Entity,
    world_lock: Arc<RwLock<World>>,
    custom_state: CustomPathfinderState,
    opts: PathfinderOpts,
)
Expand description

Update the given ExecutingPath to recalculate the path of the nodes in the given index range.

You should avoid making the range too large, since the timeout for the A* calculation is very low. About 20 nodes is a good amount.