From ee49ba470c7a0df147726eeffb39cc13fa2f337f Mon Sep 17 00:00:00 2001 From: AnturK Date: Sun, 1 Oct 2017 13:25:09 +0200 Subject: [PATCH] Fixes grown runtime spam --- code/modules/hydroponics/grown.dm | 6 +++--- code/modules/hydroponics/growninedible.dm | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 5f5752deecb..5035dd06241 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -17,9 +17,9 @@ resistance_flags = FLAMMABLE origin_tech = "biotech=1" -/obj/item/reagent_containers/food/snacks/grown/New(newloc, var/obj/item/seeds/new_seed = null) - tastes = list(name = 1) // apples taste of apple, silly. - ..() +/obj/item/reagent_containers/food/snacks/grown/Initialize (newloc, var/obj/item/seeds/new_seed) + . = ..() + tastes = list("[name]" = 1) // apples taste of apple, silly. if(new_seed) seed = new_seed.Copy() else if(ispath(seed)) diff --git a/code/modules/hydroponics/growninedible.dm b/code/modules/hydroponics/growninedible.dm index ef87a087816..655b3776766 100644 --- a/code/modules/hydroponics/growninedible.dm +++ b/code/modules/hydroponics/growninedible.dm @@ -8,8 +8,8 @@ resistance_flags = FLAMMABLE var/obj/item/seeds/seed = null // type path, gets converted to item on New(). It's safe to assume it's always a seed item. -/obj/item/grown/New(newloc, var/obj/item/seeds/new_seed = null) - ..() +/obj/item/grown/Initialize(newloc, var/obj/item/seeds/new_seed) + . = ..() create_reagents(50) if(new_seed)