Saving starter preferences after every change

This commit is contained in:
Wlowscha 2025-08-18 09:00:21 +02:00
parent 9fa4925224
commit fd43266d0c
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -4133,6 +4133,8 @@ export class StarterSelectUiHandler extends MessageUiHandler {
this.tryUpdateValue();
this.updateInstructions();
saveStarterPreferences(this.originalStarterPreferences);
}
setTypeIcons(type1: PokemonType | null, type2: PokemonType | null): void {
@ -4568,7 +4570,6 @@ export class StarterSelectUiHandler extends MessageUiHandler {
clear(): void {
super.clear();
saveStarterPreferences(this.originalStarterPreferences);
this.clearStarterPreferences();
this.cursor = -1;
this.hideInstructions();