From 6147dfe59ab9ba5d2aef39c828790e110c36bda8 Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Sat, 23 Nov 2024 09:55:35 -0800 Subject: [PATCH] language bugfixes (#6879) --- code/modules/language/language.dm | 2 +- code/modules/mob/living/silicon/silicon.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/language/language.dm b/code/modules/language/language.dm index 33114dffba57..be809af403a0 100644 --- a/code/modules/language/language.dm +++ b/code/modules/language/language.dm @@ -232,7 +232,7 @@ // Language handling. /mob/proc/add_language(var/language) - var/datum/prototype/language/new_language = RSlanguages.fetch(language) + var/datum/prototype/language/new_language = RSlanguages.fetch(language) || RSlanguages.legacy_resolve_language_name(language) if(!istype(new_language) || (new_language in languages)) return 0 diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index 8de8e71575da..4ec7fc042cc4 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -58,7 +58,7 @@ silicon_mob_list |= src . = ..() add_language(LANGUAGE_GALCOM) - set_default_language(RSlanguages.legacy_resolve_language_name(LANGUAGE_GALCOM)) + set_default_language(RSlanguages.fetch(/datum/prototype/language/common)) create_translation_context() init_id() init_subsystems()