mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 22:54:14 +00:00
Set language for gen3 eggs prior to applying nickname
The sav.ApplyTo call above tries to set the current savefile language, but gen3 savs do not have a Language ID saved. Just mimic what the encounter slots/static/etc do.
This commit is contained in:
parent
b7f849cb42
commit
764e506ab5
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ namespace PKHeX.Core
|
|||
int lang = (int)Language.GetSafeLanguage(Generation, (LanguageID)sav.Language, version);
|
||||
pk.Species = Species;
|
||||
pk.Form = Form;
|
||||
pk.Language = lang;
|
||||
pk.Nickname = SpeciesName.GetSpeciesNameGeneration(Species, lang, gen);
|
||||
pk.CurrentLevel = Level;
|
||||
pk.Version = (int)version;
|
||||
|
|
Loading…
Reference in a new issue