Skip to content

Commit d852fec

Browse files
committed
apply refresh to time capsule pokemon being released.
1 parent 08fe3d8 commit d852fec

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/java/generations/gg/generations/core/generationscore/common/world/item

1 file changed

+1
-1
lines changed

common/src/main/java/generations/gg/generations/core/generationscore/common/world/item/PokemonStoringItem.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract class PokemonStoringItem(properties: Properties) : Item(properties), Po
4141
val item = player.getItemInHand(usedHand)
4242
val pokemon = item.getPokemon()
4343
if (pokemon != null) {
44-
storage.getParty((player as ServerPlayer)).add(pokemon.also { it.uuid = UUID.randomUUID() })
44+
storage.getParty((player as ServerPlayer)).add(pokemon.also { it.uuid = UUID.randomUUID() }.also { it.refreshOriginalTrainer() })
4545
item.shrink(1)
4646
item.removePokemon()
4747
item.setLore(mutableListOf<Component>())

0 commit comments

Comments
 (0)