fix: *facepalm*

This commit is contained in:
punchready 2021-07-19 17:47:59 +02:00
parent 4f9f6e0195
commit 154ee9c0f2
1 changed files with 1 additions and 1 deletions

View File

@ -1310,7 +1310,7 @@ public class GameLogic {
int y1 = Math.min(a.getY(), b.getY());
int y2 = Math.max(a.getY(), b.getY());
Line2D line = new Line2D.Float(x1 + 0.5f, y1 + 0.5f, x2 + 0.5f, y2 + 0.5f);
Line2D line = new Line2D.Float(a.getX() + 0.5f, a.getY() + 0.5f, b.getX() + 0.5f, b.getY() + 0.5f);
for(int i = x1; i <= x2; i++) {
for(int j = y1; j <= y2; j++) {
HashSet<Point2D.Float> intersections = new HashSet<>();