From 468031cecfba9b07d7a3a3a6b3d76db630857fa0 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 3 May 2021 00:04:38 -0400 Subject: [PATCH] undefined var fix --- code/modules/mob/new_player/sprite_accessories_ear_vr.dm | 1 - code/modules/tgui/modules/appearance_changer.dm | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/mob/new_player/sprite_accessories_ear_vr.dm b/code/modules/mob/new_player/sprite_accessories_ear_vr.dm index 7705e1a8217..fd82cac5b2e 100644 --- a/code/modules/mob/new_player/sprite_accessories_ear_vr.dm +++ b/code/modules/mob/new_player/sprite_accessories_ear_vr.dm @@ -20,7 +20,6 @@ icon_state = "shadekin" do_colouration = 1 color_blend_mode = ICON_MULTIPLY - apply_restrictions = TRUE species_allowed = list(SPECIES_SHADEKIN, SPECIES_SHADEKIN_CREW) // Ears avaliable to anyone diff --git a/code/modules/tgui/modules/appearance_changer.dm b/code/modules/tgui/modules/appearance_changer.dm index e9478c3c31d..60965577607 100644 --- a/code/modules/tgui/modules/appearance_changer.dm +++ b/code/modules/tgui/modules/appearance_changer.dm @@ -542,7 +542,7 @@ // VOREStation Add - Ears/Tails/Wings /datum/tgui_module/appearance_changer/proc/can_use_sprite(datum/sprite_accessory/X, mob/living/carbon/human/target, mob/user) - if(X.apply_restrictions && !(target.species.name in X.species_allowed)) + if(!(target.species.name in X.species_allowed)) return FALSE if(LAZYLEN(X.ckeys_allowed) && !(user?.ckey in X.ckeys_allowed) && !(target.ckey in X.ckeys_allowed))