Skip to content

Commit a536053

Browse files
committed
v5.0.16
1 parent 4125890 commit a536053

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

module.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "saibot"
88
}
99
],
10-
"version": "5.0.15",
10+
"version": "5.0.16",
1111
"compatibility": {
1212
"minimum": "11",
1313
"verified": "13"
@@ -88,7 +88,7 @@
8888
}
8989
],
9090
"url": "https://github.com/Saibot393/perceptive",
91-
"download": "https://github.com/Saibot393/perceptive/archive/refs/tags/v5.0.15.zip",
91+
"download": "https://github.com/Saibot393/perceptive/archive/refs/tags/v5.0.16.zip",
9292
"manifest": "https://github.com/Saibot393/perceptive/releases/latest/download/module.json",
9393
"readme": "https://github.com/Saibot393/perceptive/blob/main/README.md",
9494
"changelog": "https://github.com/Saibot393/perceptive/blob/main/CHANGELOG.md"

scripts/StalkingScript.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,15 @@ class StalkingManager {
2525

2626
let vScreenWidth = canvas.screenDimensions[0];
2727

28-
if (!ui.sidebar._collapsed) {
29-
vScreenWidth = vScreenWidth - ui.sidebar.position.width;
28+
if (game.data.release.generation > 12) {
29+
if (ui.sidebar.expanded) {
30+
vScreenWidth = vScreenWidth - ui.sidebar.element.clientWidth;
31+
}
32+
}
33+
else {
34+
if (!ui.sidebar._collapsed) {
35+
vScreenWidth = vScreenWidth - ui.sidebar.position.width;
36+
}
3037
}
3138

3239
let vPanTarget = {x : pCenter[0], y : pCenter[1]}

0 commit comments

Comments
 (0)