I was overthinking that.

This commit is contained in:
Leijurv 2018-08-02 13:54:36 -04:00
parent 0f74141d23
commit 5cd8a958e1
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 1 additions and 1 deletions

View File

@ -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<Double, BlockPos> closestPathPos(double x, double y, double z) {