From 2e1315c7d3344fc03f20c3bce863688370c575a9 Mon Sep 17 00:00:00 2001 From: dev7355608 Date: Wed, 16 Aug 2023 05:51:09 +0200 Subject: [PATCH] Fix regression --- module.json | 6 +++--- scripts/constraint.mjs | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/module.json b/module.json index 64309c8..621452e 100644 --- a/module.json +++ b/module.json @@ -8,7 +8,7 @@ "email": "dev7355608@gmail.com" } ], - "version": "1.0.1", + "version": "1.0.2", "compatibility": { "minimum": "11", "verified": "11" @@ -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" diff --git a/scripts/constraint.mjs b/scripts/constraint.mjs index a915402..39c0502 100644 --- a/scripts/constraint.mjs +++ b/scripts/constraint.mjs @@ -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) { @@ -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) { @@ -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) { @@ -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); } }