From 36853dcdb818fc7d3e869e59e2cfb82ad3421026 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 7 Jan 2021 23:49:47 +0100 Subject: [PATCH] [MIRROR] Fixes Densified Chemicals (#2550) * fixes densified (#55967) Densified Chemicals broke with the food refactor. Food has a max_volume var that it uses to create the reagent container which was overriding the reagents.maximum_volume change. Now it changes the proper var and works again. * Fixes Densified Chemicals Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> --- code/modules/hydroponics/plant_genes.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/hydroponics/plant_genes.dm b/code/modules/hydroponics/plant_genes.dm index e1f45f38c56..a2b06c88989 100644 --- a/code/modules/hydroponics/plant_genes.dm +++ b/code/modules/hydroponics/plant_genes.dm @@ -406,7 +406,7 @@ /datum/plant_gene/trait/maxchem/on_new(obj/item/food/grown/G, newloc) ..() - G.reagents.maximum_volume *= rate + G.max_volume *= rate /datum/plant_gene/trait/repeated_harvest name = "Perennial Growth"