more cleanup

This commit is contained in:
GameHerobrine 2022-12-31 23:47:20 +03:00
parent 2573e4f90d
commit 83b2bf5df1
8 changed files with 1 additions and 18 deletions

View file

@ -5,7 +5,7 @@ class Pythagoras3D implements IDistanceAlgorithm
public function calculate(PathTile $from, PathTile $to)
{
if($from instanceof PathTileXYZ && $to instanceof PathTileXYZ){
return Utils::distance_noroot($from->asVector(), $to->asVector());
return Utils::distance($from->asArray(), $to->asArray());
}
return 666;
}