From c614d7ec6a81ff2d23708dfd30e4a497c2304483 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sat, 3 Nov 2018 20:25:09 -0700 Subject: [PATCH] fix stupid minebehavior bug --- src/main/java/baritone/behavior/MineBehavior.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/behavior/MineBehavior.java b/src/main/java/baritone/behavior/MineBehavior.java index d76f0dc1..4d37f5ff 100644 --- a/src/main/java/baritone/behavior/MineBehavior.java +++ b/src/main/java/baritone/behavior/MineBehavior.java @@ -94,7 +94,7 @@ public final class MineBehavior extends Behavior implements IMineBehavior, Helpe List locs2 = prune(new ArrayList<>(locs), mining, 64); // can't reassign locs, gotta make a new var locs2, because we use it in a lambda right here, and variables you use in a lambda must be effectively final baritone.getPathingBehavior().setGoalAndPath(new GoalComposite(locs2.stream().map(loc -> coalesce(loc, locs2)).toArray(Goal[]::new))); - knownOreLocations = locs; + knownOreLocations = locs2; return; } // we don't know any ore locations at the moment