From cbb4e50faacaf584373173a3cb3599ec2cb0eccd Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 25 Sep 2021 01:22:23 +0200 Subject: [PATCH] [MIRROR] Fix loading persistent randomized recipes without dedicated container. (#8381) * Fix loading persistent randomized recipes without dedicated container. (#61665) Container path will be null if it's unset and is not randomized. Fixes #61661 * Fix loading persistent randomized recipes without dedicated container. Co-authored-by: AnturK --- code/modules/reagents/chemistry/recipes/special.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/modules/reagents/chemistry/recipes/special.dm b/code/modules/reagents/chemistry/recipes/special.dm index c6b07021f7a..df31767add9 100644 --- a/code/modules/reagents/chemistry/recipes/special.dm +++ b/code/modules/reagents/chemistry/recipes/special.dm @@ -212,10 +212,12 @@ GLOBAL_LIST_INIT(medicine_reagents, build_medicine_reagents()) if(!temp_results) return FALSE results = temp_results - var/containerpath = text2path(recipe_data["required_container"]) - if(!containerpath) - return FALSE - required_container = containerpath + var/raw_container_path = recipe_data["required_container"] + if(raw_container_path) + var/containerpath = text2path(raw_container_path) + if(!containerpath) + return FALSE + required_container = containerpath return TRUE /datum/chemical_reaction/randomized/secret_sauce