mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fix Vector2
This commit is contained in:
parent
e93de3f7c8
commit
1c224bd643
1 changed files with 1 additions and 3 deletions
|
|
@ -47,9 +47,7 @@ class Vector2{
|
|||
if(($x instanceof Vector2) === true){
|
||||
return $this->add($x->x, $x->y);
|
||||
}else{
|
||||
$this->x += $x;
|
||||
$this->y += $y;
|
||||
return new Vector3($this->x + $x, $this->y + $y);
|
||||
return new Vector2($this->x + $x, $this->y + $y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue