mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
Fixed Vector3::add()
This commit is contained in:
parent
ab1c28fc57
commit
40842ec794
@ -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…
x
Reference in New Issue
Block a user