Fix: await manquant
This commit is contained in:
parent
2cf9d0f37c
commit
a5581e7443
@ -109,7 +109,7 @@ export class RdDActor extends Actor {
|
|||||||
const isPersonnage = actorData.type == "personnage";
|
const isPersonnage = actorData.type == "personnage";
|
||||||
// If the created actor has items (only applicable to duplicated actors) bypass the new actor creation logic
|
// If the created actor has items (only applicable to duplicated actors) bypass the new actor creation logic
|
||||||
if (actorData.items) {
|
if (actorData.items) {
|
||||||
let actor = super.create(actorData, options);
|
let actor = await super.create(actorData, options);
|
||||||
if (isPersonnage) {
|
if (isPersonnage) {
|
||||||
await actor.checkMonnaiePresence(actorData.items);
|
await actor.checkMonnaiePresence(actorData.items);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user