From 5cbc9d2d74167ce7f30e17c97b00018743fe4b27 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 2 Sep 2018 20:59:25 -0700 Subject: [PATCH] fix binary heap --- .../java/baritone/pathing/calc/openset/BinaryHeapOpenSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/pathing/calc/openset/BinaryHeapOpenSet.java b/src/main/java/baritone/pathing/calc/openset/BinaryHeapOpenSet.java index a1c1495c..47d370c6 100644 --- a/src/main/java/baritone/pathing/calc/openset/BinaryHeapOpenSet.java +++ b/src/main/java/baritone/pathing/calc/openset/BinaryHeapOpenSet.java @@ -101,7 +101,7 @@ public final class BinaryHeapOpenSet implements IOpenSet { array[size] = null; size--; result.heapPosition = -1; - if (size < 3) { + if (size < 2) { return result; } int index = 1;