skip redundant load

This commit is contained in:
James Diefenbach 2024-08-31 12:02:01 +10:00
parent aaec973af3
commit c9d05daad1

View File

@ -144,7 +144,7 @@ export default class PokemonHatchInfoContainer extends PokemonInfoContainer {
const assetLoadCancelled = new Utils.BooleanHolder(false);
this.assetLoadCancelled = assetLoadCancelled;
species.loadAssets(this.scene, female, formIndex, shiny, variant, true).then(() => {
// species.loadAssets(this.scene, female, formIndex, shiny, variant, true).then(() => {
if (assetLoadCancelled.value) {
console.log("interrupted");
console.timeEnd("display pokemon" + pokemon.name);
@ -161,7 +161,7 @@ export default class PokemonHatchInfoContainer extends PokemonInfoContainer {
this.currentPokemonSprite.setPipelineData("spriteKey", species.getSpriteKey(female, formIndex, shiny, variant));
console.timeEnd("display pokemon" + pokemon.name);
// this.pokemonSprite.setVisible(!this.statsMode);
});
// });
}
/**