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)

This commit is contained in:
2021-06-27 22:06:04 +02:00
parent 8e565d24ae
commit 13df0ccecd
2 changed files with 3 additions and 3 deletions

View File

@@ -3,8 +3,8 @@
"title": "Smart Doors", "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.", "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", "version": "1.2.7",
"minimumCoreVersion" : "0.8.5", "minimumCoreVersion" : "0.8.7",
"compatibleCoreVersion" : "0.8.5", "compatibleCoreVersion" : "0.8.8",
"authors": [ "authors": [
{ {
"name": "Manuel Vögele", "name": "Manuel Vögele",

View File

@@ -33,7 +33,7 @@ export function onRederWallConfig(wallConfig, html, data) {
export async function onWallConfigUpdate(event, formData) { export async function onWallConfigUpdate(event, formData) {
const synchronizeSecretStatus = formData.synchronizeSecretStatus; const synchronizeSecretStatus = formData.synchronizeSecretStatus;
const updateData = {flags: {smartdoors: {synchronizationGroup: formData.synchronizationGroup}}}; const updateData = {flags: {smartdoors: {synchronizationGroup: formData.synchronizationGroup}}};
let ids = this.options.editTargets; let ids = this.editTargets;
if (ids.length == 0) { if (ids.length == 0) {
ids = [this.object.id]; ids = [this.object.id];
} }