mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
pathfinder optimizations
This commit is contained in:
parent
cba1879947
commit
60c8603c8b
13 changed files with 58 additions and 145 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue