mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
skip redundant load
This commit is contained in:
parent
aaec973af3
commit
c9d05daad1
@ -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);
|
||||
});
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user