fix: fixed IntVector2 add method

This commit is contained in:
Yannik Bretschneider 2021-06-30 22:50:09 +02:00
parent ed4b454379
commit 07ade1696d
1 changed files with 3 additions and 1 deletions

View File

@ -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) {