From 30bd3d33e04534c4656c9f8438cb6c4784b117ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Tue, 8 Mar 2022 12:48:17 +0100 Subject: [PATCH 1/2] If no dragged entity is being transmitted, unset it (fixes #179) --- js/ruler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ruler.js b/js/ruler.js index 9bc2e93..01c8c70 100644 --- a/js/ruler.js +++ b/js/ruler.js @@ -54,6 +54,9 @@ export function extendRuler() { else this.draggedEntity = canvas.templates.get(data.draggedEntity); } + else { + this.draggedEntity = undefined; + } super.update(data); } From e84632c0d770e8190f038afb23eb62bea5dc13d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Tue, 8 Mar 2022 12:49:56 +0100 Subject: [PATCH 2/2] Release v1.12.4 --- CHANGELOG.md | 5 +++++ module.json | 4 ++-- rust/Cargo.lock | 2 +- rust/Cargo.toml | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c4f0ea..d76b31e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.12.4 +### Bugfixes +- Fixed a bug that could cause Drag Ruler to override the default ruler color on other player's clients + + ## 1.12.3 ### Bugfixes - Fixed a bug that could cause foundry to freeze indefinitely when trying to pathfind to an unreachalbe location (thanks to JDCalvert) diff --git a/module.json b/module.json index 6df1c76..4ee968b 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "drag-ruler", "title": "Drag Ruler", "description": "When dragging a token displays a ruler showing how far you've moved that token.", - "version": "1.12.3", + "version": "1.12.4", "minimumCoreVersion" : "9.245", "compatibleCoreVersion" : "9", "authors": [ @@ -65,7 +65,7 @@ ], "socket": true, "url": "https://github.com/manuelVo/foundryvtt-drag-ruler", - "download": "https://github.com/manuelVo/foundryvtt-drag-ruler/releases/download/v1.12.3/drag-ruler-1.12.3.zip", + "download": "https://github.com/manuelVo/foundryvtt-drag-ruler/releases/download/v1.12.4/drag-ruler-1.12.4.zip", "manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json", "readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md", "changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md", diff --git a/rust/Cargo.lock b/rust/Cargo.lock index ac1d6e9..84b5b45 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -26,7 +26,7 @@ dependencies = [ [[package]] name = "gridless-pathfinding" -version = "1.12.3" +version = "1.12.4" dependencies = [ "console_error_panic_hook", "js-sys", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index cd0c9dd..184f58f 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gridless-pathfinding" -version = "1.12.3" +version = "1.12.4" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html