Pixelmon Sidemod API - Bug tracker

[8.4.0] Alolan Preevolutions missing in base stats JSON new

Ticket description:
hello guys, i use this code to list preevolutions but it doesnt work for alolan pokemons - for example Alolan Muk is showing nonAlolan Muk as its preevolution - on discord i was said to report it as a bug

Code: Select allprivate List<PokemonSpec> getEvolutionsList(Pokemon pokemon) {
        List<PokemonSpec> evolutions = new ArrayList<>();

        // Invert list to get proper evolution order
        PokemonSpec[] preEvolutions = pokemon.getBaseStats().specPreEvolutions;
        if (preEvolutions != null && preEvolutions.length > 0) {
            for (int i = preEvolutions.length - 1; i >= 0; i--) {
                evolutions.add(preEvolutions[i]);
            }
        }

Comments

No comments have been made

Ticket details

  • Ticket ID: 17374
  • Project: Pixelmon Sidemod API
  • Status: New
  • Component: (unknown)
  • Project version: 8.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: (unknown)
  • What else would be useful to know?: (unknown)
  • Assigned to: (unassigned)
  • Reported by: VanironCZ (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 06 May 2022 17:33
  • Ticket last visited by: SkyAsa2256 on 16 May 2022 11:06
JOIN THE TEAM