mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-10-27 04:26:27 -04:00
Merge branch 'fix-pasture-shiny-effect' into 'main'
Fix shiny pasture Pokémon playing the shiny effect incorrectly Closes #1257 See merge request cable-mc/cobblemon!1409
This commit is contained in:
+1
-2
@@ -107,8 +107,7 @@ class PokemonServerDelegate : PokemonSideDelegate {
|
||||
val trackedAspects = mock?.aspects ?: entity.pokemon.aspects
|
||||
val trackedBall = mock?.pokeball ?: entity.pokemon.caughtBall.name.toString()
|
||||
|
||||
//used getOwnerPlayer().uuid instead of getOwnerUUID() to avoid a potential NPE
|
||||
entity.ownerUUID = entity.pokemon.getOwnerPlayer()?.uuid
|
||||
entity.ownerUUID = entity.pokemon.getOwnerUUID()
|
||||
entity.entityData.set(PokemonEntity.SPECIES, trackedSpecies)
|
||||
if (entity.entityData.get(PokemonEntity.NICKNAME) != trackedNickname) {
|
||||
entity.entityData.set(PokemonEntity.NICKNAME, trackedNickname)
|
||||
|
||||
Reference in New Issue
Block a user