From 2f66019a2a4d89e91e322f18b416dedc5cbeecbc Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 11 Nov 2021 03:05:48 +0100 Subject: [PATCH] Migrate token to webp --- module/rdd-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-main.js b/module/rdd-main.js index e77750b7..c0d441f6 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -276,7 +276,7 @@ async function migrationPngWebp_1_5_34() { await Actor.updateDocuments(actorsUpdates); game.actors.forEach(actor => { if (actor.data.token.img.match(regexOldPngJpg)){ - actor.update({ "data.token.img": convertImgToWebp(actor.data.token.img) }); + actor.update({ "token.img": convertImgToWebp(actor.data.token.img) }); } const actorItemsToUpdate = prepareDocumentsImgUpdate(actor.items); actor.updateEmbeddedDocuments('Item', actorItemsToUpdate);