From f0c5e7b95db9d9571c8afcbb93854639c9ed6a21 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 2 Feb 2023 18:24:58 +0100 Subject: [PATCH] Sync --- module/actor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index 6978a34..770da99 100644 --- a/module/actor.js +++ b/module/actor.js @@ -388,10 +388,10 @@ export class SoSActor extends Actor { if ( alreadyInside.length >= container.system.container ) { ui.notifications.warn("Container is already full !"); } else { - await this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':containerId }]); + setTimeout(function() { this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':containerId }])}, 800 ) } } else if ( object && object.system.containerid) { // remove from container - await this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':"" }]); + setTimeout(function() { this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':"" }])}, 800 ) } }