fix: make vector scaling round

This commit is contained in:
punchready 2021-07-19 15:27:48 +02:00
parent 996addcaf8
commit 4f9f6e0195
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class IntVector2 implements Serializable {
}
public IntVector2 scale(float x, float y) {
return new IntVector2((int)(this.x * x), (int)(this.y * y));
return new IntVector2(Math.round(this.x * x), Math.round(this.y * y));
}
public IntVector2 scale(float scalar) {