diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm index 795fa99f233..5f2b90463f2 100644 --- a/code/modules/hydroponics/grown.dm +++ b/code/modules/hydroponics/grown.dm @@ -119,7 +119,8 @@ trait.on_squash(src, target) for(var/A in T) - reagents.reaction(A) + if(reagents) + reagents.reaction(A) qdel(src) diff --git a/code/modules/hydroponics/plant_genes.dm b/code/modules/hydroponics/plant_genes.dm index e8bae4ad454..e491a132e45 100644 --- a/code/modules/hydroponics/plant_genes.dm +++ b/code/modules/hydroponics/plant_genes.dm @@ -317,7 +317,8 @@ /datum/plant_gene/trait/noreact/on_squash(obj/item/weapon/reagent_containers/food/snacks/grown/G, atom/target) G.flags &= ~NOREACT - G.reagents.handle_reactions() + if(G && G.reagents) + G.reagents.handle_reactions() /datum/plant_gene/trait/maxchem @@ -390,7 +391,8 @@ S.attach(splat_location) S.set_up(G.reagents, 2, 0, splat_location) S.start(smoke_amount) - G.reagents.clear_reagents() + if(G && G.reagents) + G.reagents.clear_reagents() /datum/plant_gene/trait/plant_type // Parent type name = "you shouldn't see this"