Skip to content

Commit

Permalink
fix update (pokeclicker#5371)
Browse files Browse the repository at this point in the history
Co-authored-by: Qwertypop04 <[email protected]>
  • Loading branch information
CypherX and Qwertypop04 authored Jun 25, 2024
1 parent 3939921 commit 3db6d60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/scripts/Update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2629,9 +2629,7 @@ class Update implements Saveable {

// Multicategory pokemon
saveData.party.caughtPokemon.forEach(pokemon => {
if (pokemon[6]) {
pokemon[6] = [pokemon[6]];
}
pokemon[6] = [pokemon[6] ?? 0];
});

// Add Alola story battles
Expand Down

0 comments on commit 3db6d60

Please sign in to comment.