diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index 72b5bf2..0673be3 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -137,7 +137,7 @@ export class VermineActorSheet extends ActorSheet { // Get the type of item to create. const type = header.dataset.type; // Grab any data associated with this control. - const data = duplicate(header.dataset); + const data = foundry.utils.duplicate(header.dataset); // Initialize a default name. // const name = `New ${type.capitalize()}`; const name = game.i18n.localize('ITEMS.new_' + type); diff --git a/module/sheets/creature-sheet.mjs b/module/sheets/creature-sheet.mjs index 7d5fa23..430f194 100644 --- a/module/sheets/creature-sheet.mjs +++ b/module/sheets/creature-sheet.mjs @@ -145,7 +145,7 @@ export class VermineCreatureSheet extends VermineActorSheet { // Get the type of item to create. const type = header.dataset.type; // Grab any data associated with this control. - const data = duplicate(header.dataset); + const data = foundry.utils.duplicate(header.dataset); // Initialize a default name. // const name = `New ${type.capitalize()}`; const name = game.i18n.localize('ITEMS.new_' + type);