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 ) } }