mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
pathfinder was changed to https://github.com/ppetermann/pathfinder (+small edits to make it work with nc)
This commit is contained in:
parent
ae8c541452
commit
187704d96e
9 changed files with 130 additions and 44 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue