onDrop depuis compendium async

Permettre de retrouver l'Item du compendium pour tester si un acteur
peut le recevoir
This commit is contained in:
2023-01-01 22:18:18 +01:00
parent d77ecee9bd
commit 2ca601b5f8
3 changed files with 9 additions and 4 deletions

View File

@ -51,7 +51,7 @@ export class RdDConteneurItemSheet extends RdDItemSheet {
async _onDropItem(event, dragData) {
if (this.actor) {
const dropParams = RdDSheetUtility.prepareItemDropParameters(this.item.id, this.actor, dragData, this.objetVersConteneur);
const dropParams = await RdDSheetUtility.prepareItemDropParameters(this.item.id, this.actor, dragData, this.objetVersConteneur);
await this.actor.processDropItem(dropParams);
await this.render(true);
}