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);