mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49: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
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue