Gestion des signes draconiques #455
@ -1032,7 +1032,7 @@ export class RdDActor extends Actor {
|
|||||||
let newItemId = itemMap[item.id]; // Get newItem
|
let newItemId = itemMap[item.id]; // Get newItem
|
||||||
|
|
||||||
console.log('New conteneur filling!', newConteneur, newItemId, item);
|
console.log('New conteneur filling!', newConteneur, newItemId, item);
|
||||||
let contenu = duplicate(newConteneur.data.contenu);
|
let contenu = duplicate(Misc.templateData(newConteneur).contenu);
|
||||||
contenu.push(newItemId);
|
contenu.push(newItemId);
|
||||||
await this.updateEmbeddedDocuments('Item', [{ _id: newConteneurId, 'data.contenu': contenu }]);
|
await this.updateEmbeddedDocuments('Item', [{ _id: newConteneurId, 'data.contenu': contenu }]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user