diff options
| author | mat <git@matdoes.dev> | 2023-10-02 19:57:13 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-02 19:57:13 -0500 |
| commit | 985327241d341caf2ce357955cb46657cfa303cb (patch) | |
| tree | 285f7b4a1d07707c7de1e308b54d9fb2110aaf6a /azalea/src/pathfinder/mod.rs | |
| parent | 7b10e5cd7e80be85f7b0517f941b175e733d3fc4 (diff) | |
| download | azalea-drasl-985327241d341caf2ce357955cb46657cfa303cb.tar.xz | |
yet another W for linear searches
Diffstat (limited to 'azalea/src/pathfinder/mod.rs')
| -rw-r--r-- | azalea/src/pathfinder/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index 831a5524..74b4342f 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -283,7 +283,7 @@ fn path_found_listener( "Entity tried to pathfind but the entity isn't in a valid world", ); let world = &world_lock.read().chunks; - let ctx = PathfinderCtx::new(&world); + let ctx = PathfinderCtx::new(world); let successors_fn: moves::SuccessorsFn = event.successors_fn; let successors = |pos: BlockPos| successors_fn(&ctx, pos); @@ -446,7 +446,7 @@ fn tick_execute_path( { // obstruction check (the path we're executing isn't possible anymore) let world = &world_lock.read().chunks; - let ctx = PathfinderCtx::new(&world); + let ctx = PathfinderCtx::new(world); let successors = |pos: BlockPos| successors_fn(&ctx, pos); if let Some(last_reached_node) = pathfinder.last_reached_node { |
