Skip to content

Commit

Permalink
smh
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps authored Dec 2, 2024
1 parent 8ccea24 commit 9f734d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/AxisAlignedBB.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,10 @@ public function calculateIntercept(Vector3 $pos1, Vector3 $pos2) : ?RayTraceResu
[Facing::UP, $v4],
[Facing::NORTH, $v5],
[Facing::SOUTH, $v6]
] as $value){
$v = $value[1];
] as [$facing, $v]){
if($v !== null and ($d = $pos1->distanceSquared($v)) < $distance){
$distance = $d;
$hitInfo = $value;
$hitInfo = [$facing, $v];
}
}

Expand Down

0 comments on commit 9f734d4

Please sign in to comment.