Skip to content

Commit

Permalink
Fix NPE when there is no intersection (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthegreat1 authored Nov 1, 2024
1 parent 83c31b2 commit 27ed4fa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ private static void estimateNextBurrow(GriffinBurrow burrow) {
return;
}
Vector2D intersection = burrow.nextBurrowLineEstimation.intersection(burrow.echoBurrowLineEstimation);
if (intersection == null) {
return;
}
burrow.nextBurrowEstimatedPos = BlockPos.ofFloored(intersection.getX(), 5, intersection.getY());
}

Expand Down

0 comments on commit 27ed4fa

Please sign in to comment.