fix tertiary languages not working, fix alt-click spawned mobs not having correct tertiary language (#33765)

This commit is contained in:
nervere
2022-12-03 18:11:52 -05:00
committed by GitHub
parent fb839a3825
commit db0a2cd906
2 changed files with 2 additions and 2 deletions

View File

@@ -687,6 +687,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
sHuman.real_name = real_name
concrete_outfit.equip(sHuman, TRUE)
client?.prefs.copy_to(sHuman)
sHuman.add_language(client?.prefs.language)
sHuman.dna.UpdateSE()
sHuman.dna.UpdateUI()
sHuman.ckey = ckey

View File

@@ -670,7 +670,6 @@
if(prefs.language)
chosen_language = all_languages["[prefs.language]"]
if(chosen_language)
if(chosen_language.flags & WHITELISTED)
new_character.add_language("[prefs.language]")
if(ticker.random_players || appearance_isbanned(src)) //disabling ident bans for now
new_character.setGender(pick(MALE, FEMALE))