From 3c28d07cb6de0051e4d8fd93b1015debd412f0f9 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sun, 2 Sep 2018 14:51:10 -0700 Subject: [PATCH] introduce bug in 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 47d370c6..a1c1495c 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 < 2) { + if (size < 3) { return result; } int index = 1;