Finish the Inventory item improvements
This commit is contained in:
parent
83039c6144
commit
2f8ec1b79c
9 changed files with 107 additions and 13 deletions
|
|
@ -23,7 +23,8 @@ export class ItemHandler extends Item {
|
|||
};
|
||||
|
||||
async _preCreate(...args) {
|
||||
if (!this.fn?._preCreate) return;
|
||||
return this.fn?._preCreate.bind(this)(...args);
|
||||
if (this.fn?._preCreate) return this.fn?._preCreate.bind(this)(...args);
|
||||
if (this.isEmbedded) return await this.actor?.preItemEmbed(this);
|
||||
return;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue