From e65853084ec7676ec71e600d477a4bff36e9b607 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Thu, 17 Apr 2025 10:17:34 -0500 Subject: [PATCH] Remove more latent console logs --- src/field/pokemon.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index a02943a837a..ce36a40697b 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -844,12 +844,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { // we reach the line of code that adds the listener, causing a deadlock. const waitOnLoadPromise = new Promise(resolve => globalScene.load.once(Phaser.Loader.Events.COMPLETE, resolve)); - // Wait for the assets we queued to load to finish loading, then... if (!globalScene.load.isLoading()) { - // push an event that will resolve when the load is complete globalScene.load.start(); - } + + // Wait for the assets we queued to load to finish loading, then... // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#creating_a_promise_around_an_old_callback_api await waitOnLoadPromise; @@ -880,7 +879,6 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { if (this.summonData?.speciesForm) { this.updateFusionPalette(true); } - console.log("Line 881"); } /**