fix indexof

This commit is contained in:
Leijurv
2019-07-08 23:16:26 -07:00
parent cd4205c361
commit f4dd100345

View File

@@ -427,7 +427,7 @@ public class PathExecutor implements IPathExecutor, Helper {
if (current instanceof MovementFall) { if (current instanceof MovementFall) {
Tuple<Vec3d, BlockPos> data = overrideFall((MovementFall) current); Tuple<Vec3d, BlockPos> data = overrideFall((MovementFall) current);
if (data != null) { if (data != null) {
BlockPos fallDest = data.getSecond(); BetterBlockPos fallDest = new BetterBlockPos(data.getSecond());
if (!path.positions().contains(fallDest)) { if (!path.positions().contains(fallDest)) {
throw new IllegalStateException(); throw new IllegalStateException();
} }