From 5cd8a958e1cf45adac8c6aff50eb3bb3ca000e1f Mon Sep 17 00:00:00 2001 From: Leijurv Date: Thu, 2 Aug 2018 13:54:36 -0400 Subject: [PATCH] I was overthinking that. --- src/main/java/baritone/bot/pathing/calc/IPath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/bot/pathing/calc/IPath.java b/src/main/java/baritone/bot/pathing/calc/IPath.java index 09fb4493..7f1d631e 100644 --- a/src/main/java/baritone/bot/pathing/calc/IPath.java +++ b/src/main/java/baritone/bot/pathing/calc/IPath.java @@ -48,7 +48,7 @@ public interface IPath { * @return */ default boolean isInPath(BlockPos currentPosition) { - return positions().stream().anyMatch(pos -> currentPosition.equals(pos)); + return positions().contains(currentPosition); } default Tuple closestPathPos(double x, double y, double z) {