Add secondary update to biome pool loading (#2157)

This commit is contained in:
Xavion3 2024-06-13 09:37:07 +10:00 committed by GitHub
parent f18dcde490
commit 448096db33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,6 +55,10 @@ export class Arena {
this.scene.arenaNextEnemy.setBiome(this.biomeType);
this.scene.arenaBg.setTexture(`${biomeKey}_bg`);
this.scene.arenaBgTransition.setTexture(`${biomeKey}_bg`);
// Redo this on initialise because during save/load the current wave isn't always
// set correctly during construction
this.updatePoolsForTimeOfDay();
}
updatePoolsForTimeOfDay(): void {