diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index a44b412a1f2..b5fa85548be 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -78,7 +78,7 @@ /// Callback proc for bonus behavior for generating trash of grown food. Used by [/datum/element/food_trash]. /obj/item/food/grown/proc/generate_trash() // If this is some type of grown thing, we pass a seed arg into its Inititalize() - if(istype(trash_type, /obj/item/grown) || istype(trash_type, /obj/item/food/grown)) + if(ispath(trash_type, /obj/item/grown) || ispath(trash_type, /obj/item/food/grown)) return new trash_type(src, seed) return new trash_type(src)