From 76d2a409364208ac21ecf668db2b21c0278e35e4 Mon Sep 17 00:00:00 2001 From: Verkister Date: Fri, 23 Apr 2021 18:00:44 +0300 Subject: [PATCH] Makes xenowear species WL check species Makes loadout xenowear species whitelists check the selected species of the character instead of whether or not the client key is whitelisted for the species. --- code/modules/client/preference_setup/loadout/loadout.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/preference_setup/loadout/loadout.dm b/code/modules/client/preference_setup/loadout/loadout.dm index 73dbcc2e3e..12e1b6170e 100644 --- a/code/modules/client/preference_setup/loadout/loadout.dm +++ b/code/modules/client/preference_setup/loadout/loadout.dm @@ -66,7 +66,7 @@ var/list/gear_datums = list() for(var/gear_name in gear_datums) var/datum/gear/G = gear_datums[gear_name] - if(G.whitelisted && !is_alien_whitelisted(preference_mob, GLOB.all_species[G.whitelisted])) + if(G.whitelisted != pref.species) continue if(max_cost && G.cost > max_cost) continue