From c454e2d2327b586188ac636d67c993556d1a745e Mon Sep 17 00:00:00 2001 From: Greenlamp2 <44787002+Greenlamp2@users.noreply.github.com> Date: Tue, 21 May 2024 02:17:21 +0200 Subject: [PATCH] Fix - shiny color swap (#1183) * return a list of errors if something is wrong with the variant's sprite * reformat * added data in error message * added read comfort + detection of missing json for existing variant * fix an error of message display * fix fetch color swap, missing a return --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 8071b2c032e..99cd56fbf04 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -336,7 +336,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { console.error(`Could not load ${res.url}!`); return; } - res.json() + return res.json() }).then(c => { variantColorCache[key] = c; resolve();