pathfinder optimizations

This commit is contained in:
GameHerobrine 2023-01-05 02:31:56 +03:00
parent cba1879947
commit 60c8603c8b
13 changed files with 58 additions and 145 deletions

View file

@ -29,10 +29,7 @@ class PathTileXYZ extends PathTile
}
public function addOffset($offset){
$this->x += $offset[0];
$this->y += $offset[1];
$this->z += $offset[2];
return $this;
return new PathTileXYZ($this->x + $offset[0], $this->y + $offset[1], $this->z + $offset[2], $this->level);
}
public function __toString(){