MyPetORG / MyPet

🐕 Extensive pet plugin for Bukkit/Spigot
https://www.spigotmc.org/resources/mypet.12725/
GNU Lesser General Public License v3.0
185 stars 99 forks source link

Wolf.Variant class is not properly taken on pet-leash #1681

Open MaksyKun opened 3 months ago

MaksyKun commented 3 months ago

Bug report

Describe the bug

A clear and concise description of what the bug is.

  1. The 9 different variants of wolves are also becoming the "vanilla" wolf when capturing it. Instead it should be the variant.
  2. Furthermore, when releasing the default wolf in a proper biome, he becomes the variant of the wolf-types.

    To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Capture any wolf, it will become normal type
  2. Release a wolf in the desired biome, it will become the other variant

Expected behavior

A clear and concise description of what you expected to happen.

Actual behaviour

If applicable, add screenshots to help explain your problem. It should have a possibility to stpre Wolf.Variant Class of the new wolves from 1.20.6+

Additional context

Please use the /petadmin ticket command and attach the generated ticket.zip from the MyPet folder to this issue.

Bukkit/Spigot/Bungee Build/Version: Current Purpur Version: 1.20.6-2233-0d6766e (MC: 1.20.6)*

MyPet Build/Version: MyPet 3.12

mercurialmusic commented 3 months ago

Confirming. Seems like it's doing the same for the cats as well. Pets change to the default wolf or random cat when leashed, then at least with cats seem to change variants randomly.

Using 3.12-SNAPSHOT-B1765 on Paper version 1.21.1-40