From f87d3dbfda69fd31250186f0bef1a99482b7ad00 Mon Sep 17 00:00:00 2001 From: Stas Tserkovny Date: Tue, 29 Jun 2021 13:51:15 -0600 Subject: [PATCH] Update _preCreate to not use deprecated behavior Removes use of getOwnedItems from _preCreate. Relies on a bit of a bandaid fix due to missing types, but should be the correct way to handle that process. --- module/actors/BWActor.ts | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/module/actors/BWActor.ts b/module/actors/BWActor.ts index 879dcb72..52629ec3 100644 --- a/module/actors/BWActor.ts +++ b/module/actors/BWActor.ts @@ -235,17 +235,20 @@ export class BWActor extends Actor, _options: FoundryDocument.CreateOptions, user: User): Promise {