Whoops
This commit is contained in:
parent
6caae889b7
commit
689dc74330
@ -483,10 +483,8 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
|
|||||||
transformed = new GoalXZ(pos.getX(), pos.getZ());
|
transformed = new GoalXZ(pos.getX(), pos.getZ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HashSet<Long> favoredPositions;
|
HashSet<Long> favoredPositions = null;
|
||||||
if (Baritone.settings().backtrackCostFavoringCoefficient.get() == 1D) {
|
if (Baritone.settings().backtrackCostFavoringCoefficient.get() != 1D && previous != null) {
|
||||||
favoredPositions = null;
|
|
||||||
} else {
|
|
||||||
favoredPositions = previous.positions().stream().map(BetterBlockPos::longHash).collect(Collectors.toCollection(HashSet::new));
|
favoredPositions = previous.positions().stream().map(BetterBlockPos::longHash).collect(Collectors.toCollection(HashSet::new));
|
||||||
}
|
}
|
||||||
return new AStarPathFinder(start.getX(), start.getY(), start.getZ(), transformed, favoredPositions, context);
|
return new AStarPathFinder(start.getX(), start.getY(), start.getZ(), transformed, favoredPositions, context);
|
||||||
|
Loading…
Reference in New Issue
Block a user