From c589388d085c4898a3a7635850d5769319183201 Mon Sep 17 00:00:00 2001 From: Meghan-Rossi <56671765+Meghan-Rossi@users.noreply.github.com> Date: Sun, 15 Mar 2020 14:43:47 +0000 Subject: [PATCH] Adds ckey whitelist check for mirrors Fixes https://github.com/VOREStation/VOREStation/issues/3882 --- code/modules/mob/living/carbon/human/appearance.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mob/living/carbon/human/appearance.dm b/code/modules/mob/living/carbon/human/appearance.dm index 86b8c27da60..2bade934dd3 100644 --- a/code/modules/mob/living/carbon/human/appearance.dm +++ b/code/modules/mob/living/carbon/human/appearance.dm @@ -179,6 +179,10 @@ if(!(use_species in S.species_allowed)) continue + + if(S.ckeys_allowed && !(ckey in S.ckeys_allowed)) //VOREStation add - ckey whitelist check + continue //VOREStation add - ckey whitelist check + valid_hairstyles += hairstyle return valid_hairstyles @@ -202,6 +206,9 @@ if(!(use_species in S.species_allowed)) continue + if(S.ckeys_allowed && !(ckey in S.ckeys_allowed)) //VOREStation add - ckey whitelist check + continue //VOREStation add - ckey whitelist check + valid_facial_hairstyles += facialhairstyle return valid_facial_hairstyles