From df8e93b4320d7a1b028e5e382f440e958eabd5ab Mon Sep 17 00:00:00 2001 From: Charlie Nolan Date: Wed, 6 Mar 2024 06:32:30 -0800 Subject: [PATCH] Fixed lastproduce initialization for grass. (#24339) --- code/modules/hydroponics/hydroponics_tray.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/hydroponics/hydroponics_tray.dm b/code/modules/hydroponics/hydroponics_tray.dm index 42fe9a3adff..caaf5502565 100644 --- a/code/modules/hydroponics/hydroponics_tray.dm +++ b/code/modules/hydroponics/hydroponics_tray.dm @@ -152,7 +152,7 @@ if(myseed && !dead) // Advance age age++ - if(age < myseed.maturation) + if(age <= myseed.maturation) lastproduce = age needs_update = 1 @@ -227,7 +227,7 @@ adjustHealth(-rand(1,5) / rating) // Harvest code - if(age > myseed.production && (age - lastproduce) > myseed.production && (!harvest && !dead)) + if(age > myseed.production && (age - lastproduce) >= myseed.production && (!harvest && !dead)) nutrimentMutation() if(myseed && myseed.yield != -1) // Unharvestable shouldn't be harvested harvest = TRUE