From b443be1795d0fd611e62ed3ab546dea67586ee83 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 12 Oct 2018 15:29:25 -0700 Subject: [PATCH] more accurate check --- src/main/java/baritone/pathing/calc/AStarPathFinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/pathing/calc/AStarPathFinder.java b/src/main/java/baritone/pathing/calc/AStarPathFinder.java index 9fbb3979..020acc34 100644 --- a/src/main/java/baritone/pathing/calc/AStarPathFinder.java +++ b/src/main/java/baritone/pathing/calc/AStarPathFinder.java @@ -111,7 +111,7 @@ public final class AStarPathFinder extends AbstractNodeCostSearch implements Hel if (!moves.dynamicXZ && !worldBorder.entirelyContains(newX, newZ)) { continue; } - if ((currentNode.y == 256 && moves.yOffset > 0) || (currentNode.y == 0 && moves.yOffset < 0)) { + if (currentNode.y + moves.yOffset > 256 || currentNode.y + moves.yOffset < 0) { continue; } res.reset();