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
This commit is contained in:
Greenlamp2 2024-05-21 02:17:21 +02:00 committed by GitHub
parent 0fd2dcf0aa
commit c454e2d232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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();