mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 19:24:12 +00:00
Critical arrows, fixed arrow interception calculation
This commit is contained in:
@ -274,7 +274,12 @@ class AxisAlignedBB{
|
||||
$v6 = null;
|
||||
}
|
||||
|
||||
$vector = $v1;
|
||||
$vector = null;
|
||||
|
||||
|
||||
if($v1 !== null and ($vector === null or $pos1->distanceSquared($v1) < $pos1->distanceSquared($vector))){
|
||||
$vector = $v1;
|
||||
}
|
||||
|
||||
if($v2 !== null and ($vector === null or $pos1->distanceSquared($v2) < $pos1->distanceSquared($vector))){
|
||||
$vector = $v2;
|
||||
|
Reference in New Issue
Block a user