mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed Vector3::add()
This commit is contained in:
parent
ab1c28fc57
commit
40842ec794
1 changed files with 0 additions and 3 deletions
|
|
@ -86,9 +86,6 @@ class Vector3{
|
||||||
if(($x instanceof Vector3) === true){
|
if(($x instanceof Vector3) === true){
|
||||||
return $this->add($x->x, $x->y, $x->z);
|
return $this->add($x->x, $x->y, $x->z);
|
||||||
}else{
|
}else{
|
||||||
$this->x += $x;
|
|
||||||
$this->y += $y;
|
|
||||||
$this->z += $z;
|
|
||||||
return new Vector3($this->x + $x, $this->y + $y, $this->z + $z);
|
return new Vector3($this->x + $x, $this->y + $y, $this->z + $z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue