use methods from the foundry.utils namespaces instead of their global counterparts

This commit is contained in:
Johannes Loher 2021-07-01 01:08:30 +02:00
parent 8f7f6af359
commit 1ddabc388c
3 changed files with 4 additions and 4 deletions

View file

@ -169,7 +169,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options, DS4ActorSheetD
// Set new value
const newValue = this.getValue(el);
setProperty(itemObject, property, newValue);
foundry.utils.setProperty(itemObject, property, newValue);
this.actor.updateEmbeddedDocuments("Item", [{ ...itemObject }]); // TODO: Improve in upstream
}