Allow 50,000 iterations of A*

This commit is contained in:
fullwall 2013-07-09 15:21:23 +08:00
parent 3e1a15e347
commit 54eb4e31da

View File

@ -29,7 +29,7 @@ public class AStarNavigationStrategy extends AbstractPathStrategy {
this.npc = npc;
Location location = npc.getBukkitEntity().getEyeLocation();
plan = ASTAR.runFully(new VectorGoal(dest, (float) params.distanceMargin()), new VectorNode(location,
new ChunkBlockSource(location, params.range()), params.examiners()), (int) (params.range() * 10));
new ChunkBlockSource(location, params.range()), params.examiners()), 50000);
if (plan == null || plan.isComplete()) {
setCancelReason(CancelReason.STUCK);
} else {