From e1a096d14193c1efee744238ddb2a8c8c540190b Mon Sep 17 00:00:00 2001 From: Michiyamenotehifunana <31995558+Michiyamenotehifunana@users.noreply.github.com> Date: Tue, 23 May 2023 20:35:48 +0800 Subject: [PATCH] Quick little check to prevent runtimes --- code/modules/aberrants/organs/machinery/organ_fabricator.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/aberrants/organs/machinery/organ_fabricator.dm b/code/modules/aberrants/organs/machinery/organ_fabricator.dm index 1afc5ecb97..fb323d59f6 100644 --- a/code/modules/aberrants/organs/machinery/organ_fabricator.dm +++ b/code/modules/aberrants/organs/machinery/organ_fabricator.dm @@ -40,8 +40,9 @@ // Remove when actual organ research is made for(var/obj/machinery/reagentgrinder/industrial/disgorger/D in get_area_all_atoms(get_area(src))) - for(var/design in D.knowledge.known_designs) - files.AddDesign2Known(design) + if(D.knowledge) //OCCULUS EDIT + for(var/design in D.knowledge.known_designs) + files.AddDesign2Known(design) /obj/machinery/autolathe/organ_fabricator/res_load() if(working || paused || error)