[MIRROR] Fixes a bunch of harddels that are sourced from player action (#6252)

* Fixes a bunch of harddels that are sourced from player action

* Mirror!

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Funce <funce.973@gmail.com>
This commit is contained in:
SkyratBot
2021-06-11 03:13:33 +01:00
committed by GitHub
co-authored by LemonInTheDark Funce
parent cc5595fddf
commit 6f3b151bb8
165 changed files with 1076 additions and 546 deletions
+4 -2
View File
@@ -53,8 +53,10 @@ Key procs
var/atom/owner
/// Initializes, and copies in the languages from the current atom if available.
///datum/language_holder/New(_owner) //ORIGINAL
/datum/language_holder/New(_owner, datum/preferences/pref_load) //SKYRAT EDIT CHANGE - CUSTOMIZATION
///datum/language_holder/New(atom/_owner) //ORIGINAL
/datum/language_holder/New(atom/_owner, datum/preferences/pref_load) //SKYRAT EDIT CHANGE - CUSTOMIZATION
if(_owner && QDELETED(_owner))
CRASH("Langauge holder added to a qdeleting thing, what the fuck \ref[_owner]")
//SKYRAT EDIT ADDITION BEGIN - CUSTOMIZATION
if(pref_load)
//If we're loading a holder from prefs, override the languages