fix: fixed IntVector2 add method

This commit is contained in:
Yannik Bretschneider 2021-06-30 22:50:09 +02:00
parent ed4b454379
commit 07ade1696d

View File

@ -87,7 +87,9 @@ public class IntVector2 implements Serializable {
} }
public IntVector2 add(int x, int y) { 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) { public IntVector2 add(IntVector2 v) {