fixed unmount (hopefully one last time)

This commit is contained in:
GameHerobrine 2024-06-08 22:57:49 +03:00
parent 5f5c2b82de
commit fb13a6123b
10 changed files with 100 additions and 36 deletions

View file

@ -19,6 +19,7 @@ class TileNavigator
}
public function reconstructPath($path, $current){
console("path built");
$totalPath = [$current];
while (isset($path[(string)$current]))
{
@ -172,7 +173,7 @@ class TileNavigator
$path[$neighbor] = $current;
if($targetDist < $closestToTargetDist){
console("found new best to target: $neighbor($closestToTargetDist -> $targetDist)");
//console("found new best to target: $neighbor($closestToTargetDist -> $targetDist)");
$closestToTarget = $neighbor;
$closestToTargetDist = $targetDist;