[NON-MODULAR] Actually Actually Fix Invisible Languages for Good! (#15647)

Actually actually fix invisible languages for good!
This commit is contained in:
RimiNosha
2022-08-15 19:43:37 -07:00
committed by GitHub
parent 52e1f1bc94
commit 86058af9b3
+3 -2
View File
@@ -114,8 +114,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if(loaded_preferences_successfully)
if(load_character())
// SKYRAT EDIT START - Sanitizing languages
for(var/datum/language/lang_path as anything in languages)
if(initial(lang_path.secret))
for(var/lang_path as anything in languages)
var/datum/language/language = GLOB.language_datum_instances[lang_path]
if(!language || language.secret)
languages.Remove(lang_path)
// SKYRAT EDIT END
return // SKYRAT EDIT - Don't remove this. Just don't. Nothing is worth forced random characters.