diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ed28c0..c616f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Bugfixes - In cloned scenes Locked Door Alerts will now only highlight the door in the correct scene - When adding a door to a synchronization group it will now assume the correct state if it's being synchronized with it's twin door on a cloned map +- Fixed a bug that allowed synchonized doors to be opened dispite them being locked ## v1.0.1 - When adding a door to a synchronization group adjust it's state to bring it in sync with the other doors diff --git a/main.js b/main.js index 1f8f04e..9df7c00 100644 --- a/main.js +++ b/main.js @@ -313,7 +313,7 @@ function synchronizedDoorsLeftClick() { return false // If the door is locked there is nothing to synchronize - if (this.state === states.LOCKED) + if (state === states.LOCKED) return false // Calculate new door state