From 85cc86346cef57c0052d4ddc3b3f0f2074d2ed08 Mon Sep 17 00:00:00 2001 From: ZacSharp <68165024+ZacSharp@users.noreply.github.com> Date: Sun, 20 Sep 2020 22:20:24 +0200 Subject: [PATCH] Actually use Y and Z bounds for Y and Z --- src/api/java/baritone/api/pathing/goals/GoalRunAway.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/java/baritone/api/pathing/goals/GoalRunAway.java b/src/api/java/baritone/api/pathing/goals/GoalRunAway.java index 3955de1e..76f7110c 100644 --- a/src/api/java/baritone/api/pathing/goals/GoalRunAway.java +++ b/src/api/java/baritone/api/pathing/goals/GoalRunAway.java @@ -103,8 +103,8 @@ public class GoalRunAway implements Goal { HashSet maybeAlwaysInside = new HashSet<>(); HashSet sometimesOutside = new HashSet<>(); for (int x = minX; x <= maxX; x++) { - for (int y = minX; y <= maxX; y++) { - for (int z = minX; z <= maxX; z++) { + for (int y = minY; y <= maxY; y++) { + for (int z = minZ; z <= maxZ; z++) { double h = heuristic(x, y, z); if (!sometimesOutside.contains(h) && isInGoal(x, y, z)) { maybeAlwaysInside.add(h);