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

@ -62,9 +62,9 @@ class Vector3{
public function subtract($x = 0, $y = 0, $z = 0){
if(($x instanceof Vector3) === true){
return $this->add(-$x->x, -$x->y, -$x->z);
return $this->subtract($x->x, $x->y, $x->z);
}else{
return $this->add(-$x, -$y, -$z);
return new Vector3($this->x - $x, $this->y - $y, $this->z - $z);
}
}