From 847b299aa98c7f3c2b5ea7ceed10f7f9f4ed7c33 Mon Sep 17 00:00:00 2001 From: levels0 Date: Wed, 22 Apr 2026 23:58:19 +0300 Subject: [PATCH] Fix randomized reaction persistence (#95835) ## About The Pull Request The wrong data was passed to the random reaction initialization Fixes #95830 ## Why It's Good For The Game livrah-streamer ## Changelog :cl: fix: metalgen and secret sauce recipes are now loaded properly /:cl: --------- Co-authored-by: l0 <--> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> --- code/_globalvars/lists/reagents.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_globalvars/lists/reagents.dm b/code/_globalvars/lists/reagents.dm index d94c62a7a24..cbed6116d05 100644 --- a/code/_globalvars/lists/reagents.dm +++ b/code/_globalvars/lists/reagents.dm @@ -134,7 +134,7 @@ GLOBAL_LIST_INIT(stacked_metabolization_effect, init_chemical_side_effects()) if(ispath(reaction, /datum/chemical_reaction/randomized)) var/target_path = reaction var/index = reactions.Find(reaction) - reaction = new target_path(json) + reaction = new target_path(LAZYACCESS(json, "[target_path]")) //failed to init if(QDELETED(reaction))