Skip to content

Commit 9f734d4

Browse files
authored
smh
1 parent 8ccea24 commit 9f734d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/AxisAlignedBB.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,10 @@ public function calculateIntercept(Vector3 $pos1, Vector3 $pos2) : ?RayTraceResu
456456
[Facing::UP, $v4],
457457
[Facing::NORTH, $v5],
458458
[Facing::SOUTH, $v6]
459-
] as $value){
460-
$v = $value[1];
459+
] as [$facing, $v]){
461460
if($v !== null and ($d = $pos1->distanceSquared($v)) < $distance){
462461
$distance = $d;
463-
$hitInfo = $value;
462+
$hitInfo = [$facing, $v];
464463
}
465464
}
466465

0 commit comments

Comments
 (0)