From 07fec51d920577f7ed89196d49c8487f4cf49ecf Mon Sep 17 00:00:00 2001 From: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Thu, 15 Jul 2021 16:44:48 +0100 Subject: [PATCH] fix --- code/datums/elements/photosynthesis.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/elements/photosynthesis.dm b/code/datums/elements/photosynthesis.dm index 4fe0615b1f..8e1c8c53ff 100644 --- a/code/datums/elements/photosynthesis.dm +++ b/code/datums/elements/photosynthesis.dm @@ -59,7 +59,7 @@ var/mob/living/L = AM if(L.stat == DEAD) continue - if(light_nutrition_gain) + if(light_nutrition_gain && L.nutrition < NUTRITION_LEVEL_WELL_FED) L.adjust_nutrition(light_amount * light_nutrition_gain * attached_atoms[AM], NUTRITION_LEVEL_WELL_FED) if(light_amount > bonus_lum || light_amount < malus_lum) var/mult = ((light_amount > bonus_lum) ? 1 : -1) * attached_atoms[AM]