mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed unmount (hopefully one last time)
This commit is contained in:
parent
5f5c2b82de
commit
fb13a6123b
10 changed files with 100 additions and 36 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue