fix: fixed IntVector2 add method
This commit is contained in:
parent
ed4b454379
commit
07ade1696d
@ -87,7 +87,9 @@ public class IntVector2 implements Serializable {
|
||||
}
|
||||
|
||||
public IntVector2 add(int x, int y) {
|
||||
return new IntVector2(this.x + x, this.y + y);
|
||||
this.x += x;
|
||||
this.y += y;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IntVector2 add(IntVector2 v) {
|
||||
|
Loading…
Reference in New Issue
Block a user