mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
more cleanup
This commit is contained in:
parent
2573e4f90d
commit
83b2bf5df1
8 changed files with 1 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue