From 13df0ccecd1b3f12e2b60c40a8e7081e04213a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Sun, 27 Jun 2021 22:06:04 +0200 Subject: [PATCH] Update Smart Doors to work with the changed API (between Version 0.8.5 and 0.8.7). Update Smart Doors to work again (fixes #8) --- module.json | 4 ++-- src/features/synchronized_doors.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module.json b/module.json index 3ddfd7a..db38c24 100644 --- a/module.json +++ b/module.json @@ -3,8 +3,8 @@ "title": "Smart Doors", "description": "Makes doors smarter. Allows doors to synchronize across multiple scenes and sends chat messages when players try to open locked doors.", "version": "1.2.7", - "minimumCoreVersion" : "0.8.5", - "compatibleCoreVersion" : "0.8.5", + "minimumCoreVersion" : "0.8.7", + "compatibleCoreVersion" : "0.8.8", "authors": [ { "name": "Manuel Vögele", diff --git a/src/features/synchronized_doors.js b/src/features/synchronized_doors.js index 018e1fa..1d252ac 100644 --- a/src/features/synchronized_doors.js +++ b/src/features/synchronized_doors.js @@ -33,7 +33,7 @@ export function onRederWallConfig(wallConfig, html, data) { export async function onWallConfigUpdate(event, formData) { const synchronizeSecretStatus = formData.synchronizeSecretStatus; const updateData = {flags: {smartdoors: {synchronizationGroup: formData.synchronizationGroup}}}; - let ids = this.options.editTargets; + let ids = this.editTargets; if (ids.length == 0) { ids = [this.object.id]; }