Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
dev7355608 committed Aug 16, 2023
1 parent c8b6745 commit 2e1315c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"email": "[email protected]"
}
],
"version": "1.0.1",
"version": "1.0.2",
"compatibility": {
"minimum": "11",
"verified": "11"
Expand Down Expand Up @@ -36,8 +36,8 @@
},
"url": "https://github.com/dev7355608/limits",
"manifest": "https://github.com/dev7355608/limits/releases/latest/download/module.json",
"download": "https://github.com/dev7355608/limits/releases/download/v1.0.1/module.zip",
"changelog": "https://github.com/dev7355608/limits/releases/tag/v1.0.1",
"download": "https://github.com/dev7355608/limits/releases/download/v1.0.2/module.zip",
"changelog": "https://github.com/dev7355608/limits/releases/tag/v1.0.2",
"bugs": "https://github.com/dev7355608/limits/issues",
"readme": "https://raw.githubusercontent.com/dev7355608/limits/main/README.md",
"license": "https://raw.githubusercontent.com/dev7355608/limits/main/LICENSE"
Expand Down
12 changes: 12 additions & 0 deletions scripts/constraint.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ export class Constraint extends PIXI.Polygon {
}
} else {
this.#rayCaster1 = null;
this.#addPoint(px0, oy);
this.#addPoint(px0, py0);
this.#addPoint(ox, py0);
}

if (px1 < ox && oy < py1) {
Expand All @@ -350,6 +353,9 @@ export class Constraint extends PIXI.Polygon {
}
} else {
this.#rayCaster2 = null;
this.#addPoint(ox, py1);
this.#addPoint(px1, py1);
this.#addPoint(px1, oy);
}

if (px2 < ox && py2 < oy) {
Expand All @@ -374,6 +380,9 @@ export class Constraint extends PIXI.Polygon {
}
} else {
this.#rayCaster3 = null;
this.#addPoint(px2, oy);
this.#addPoint(px2, py2);
this.#addPoint(ox, py2);
}

if (ox < px3 && py3 < oy) {
Expand All @@ -398,6 +407,9 @@ export class Constraint extends PIXI.Polygon {
}
} else {
this.#rayCaster4 = null;
this.#addPoint(ox, py3);
this.#addPoint(px3, py3);
this.#addPoint(px3, oy);
}
}

Expand Down

0 comments on commit 2e1315c

Please sign in to comment.