pathfinder was changed to https://github.com/ppetermann/pathfinder (+small edits to make it work with nc)

This commit is contained in:
GameHerobrine 2022-10-20 15:48:32 +03:00
parent ae8c541452
commit 187704d96e
9 changed files with 130 additions and 44 deletions

View file

@ -44,7 +44,7 @@ class MinecraftNode extends Node
for($z = -1; $z <= 1; $z++){
$node = new MinecraftNode($x + $this->x, $this->y, $z + $this->z);
if(!$node->canMoveHere($pf)){
console("[DEBUG] Obstacle at $node");
//console("[DEBUG] Obstacle at $node");
continue;
}
$this->nodes[] = $node;