From 7f905e697046838fd2d95617a09b5b68ef03215a Mon Sep 17 00:00:00 2001 From: psq95 Date: Mon, 27 Mar 2023 00:07:44 +0100 Subject: [PATCH] Fix duplicate crafting recipes Remove second call to init_subtypes added with hair gradient update SHA: 8e402721dd0300f02483186b53126d25b4823ac7 --- code/__HELPERS/global_lists.dm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index a69c5a6d..c3514429 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -86,18 +86,14 @@ var/datum/emote/E = new path() E.emote_list[E.key] = E + //Crafting Recipes init_subtypes(/datum/crafting_recipe, GLOB.crafting_recipes) - - - // Hair Gradients - Initialise all /datum/sprite_accessory/hair_gradient into an list indexed by gradient-style name + //Hair Gradients - Initialise all /datum/sprite_accessory/hair_gradient into a list indexed by gradient-style name for(var/path in subtypesof(/datum/sprite_accessory/hair_gradient)) var/datum/sprite_accessory/hair_gradient/H = new path() GLOB.hair_gradients_list[H.name] = H - init_subtypes(/datum/crafting_recipe, GLOB.crafting_recipes) - - //creates every subtype of prototype (excluding prototype) and adds it to list L. //if no list/L is provided, one is created. /proc/init_subtypes(prototype, list/L)