diff --git a/code/controllers/subsystem/persistence/recipes.dm b/code/controllers/subsystem/persistence/recipes.dm index c1d72d8d908..828f856b76a 100644 --- a/code/controllers/subsystem/persistence/recipes.dm +++ b/code/controllers/subsystem/persistence/recipes.dm @@ -6,6 +6,8 @@ //asert globchems done for(var/randomized_type in subtypesof(/datum/chemical_reaction/randomized)) var/datum/chemical_reaction/randomized/R = GLOB.chemical_reactions_list[randomized_type] + if(!R) + continue file_data["[R.type]"] = list( timestamp = R.created, required_reagents = R.required_reagents, diff --git a/code/modules/reagents/chemistry/recipes/special.dm b/code/modules/reagents/chemistry/recipes/special.dm index 1dfd281c5ff..c269d7710ae 100644 --- a/code/modules/reagents/chemistry/recipes/special.dm +++ b/code/modules/reagents/chemistry/recipes/special.dm @@ -44,6 +44,7 @@ //creation time, decides if we are random generating or not created = recipe_data ? text2num(recipe_data["timestamp"]) : world.realtime if(daysSince(created) > persistence_period) + created = world.realtime recipe_data = null //all reagents