diff --git a/module.json b/module.json index 375bdca..ee1654a 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "compatibility": { "minimum": "10", "verified": "10.287", - "maximum": "10" + "maximum": "11" }, "authors": [ { @@ -20,7 +20,7 @@ "id": "wfrp4e", "type": "system", "compatibility": { - "verified": "6.1.4" + "verified": "6.5.9" } } ], diff --git a/src/main.ts b/src/main.ts index a5b44cc..2cd80a5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -88,7 +88,7 @@ async function generate(actor: Actor & any, docBuilder: AbstractBuilder) { let actorImageData: string | null = null; if (actorImage != null) { const texture = await loadTexture(actorImage); - actorImageData = ImageHelper.textureToImage(texture); + actorImageData = await ImageHelper.textureToImage(texture); } const currentCareer: Item & any = actor.currentCareer; const careerData: ItemData & any = currentCareer;