From 689dc743301a97b3130adfc7249efc8248ca5a05 Mon Sep 17 00:00:00 2001 From: Brady Date: Sat, 17 Nov 2018 11:41:16 -0600 Subject: [PATCH] Whoops --- src/main/java/baritone/behavior/PathingBehavior.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/baritone/behavior/PathingBehavior.java b/src/main/java/baritone/behavior/PathingBehavior.java index 884fe75b..1943b215 100644 --- a/src/main/java/baritone/behavior/PathingBehavior.java +++ b/src/main/java/baritone/behavior/PathingBehavior.java @@ -483,10 +483,8 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior, transformed = new GoalXZ(pos.getX(), pos.getZ()); } } - HashSet favoredPositions; - if (Baritone.settings().backtrackCostFavoringCoefficient.get() == 1D) { - favoredPositions = null; - } else { + HashSet favoredPositions = null; + if (Baritone.settings().backtrackCostFavoringCoefficient.get() != 1D && previous != null) { favoredPositions = previous.positions().stream().map(BetterBlockPos::longHash).collect(Collectors.toCollection(HashSet::new)); } return new AStarPathFinder(start.getX(), start.getY(), start.getZ(), transformed, favoredPositions, context);