From 8c7c9d369de889384ac0336d5eb7ffecbe436d1a Mon Sep 17 00:00:00 2001 From: Migratingcocofruit <69551563+Migratingcocofruit@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:58:10 -0700 Subject: [PATCH] [FIX]Plant DNA manipulator now drops seed and disks on destruction (#26156) * The Plant DNA manipulator now drops disks and seed upon destruction, rather than deleting them * Update code/modules/hydroponics/gene_modder.dm Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> Signed-off-by: Migratingcocofruit <69551563+Migratingcocofruit@users.noreply.github.com> --------- Signed-off-by: Migratingcocofruit <69551563+Migratingcocofruit@users.noreply.github.com> Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> --- code/modules/hydroponics/gene_modder.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/hydroponics/gene_modder.dm b/code/modules/hydroponics/gene_modder.dm index 147ba615edb9..f217454134bc 100644 --- a/code/modules/hydroponics/gene_modder.dm +++ b/code/modules/hydroponics/gene_modder.dm @@ -58,12 +58,14 @@ RefreshParts() /obj/machinery/plantgenes/Destroy() + for(var/atom/movable/A in contents) + A.forceMove(loc) + seed = null + disk = null core_genes.Cut() reagent_genes.Cut() trait_genes.Cut() target = null - QDEL_NULL(seed) - QDEL_NULL(disk) return ..() /obj/machinery/plantgenes/RefreshParts() // Comments represent the max you can set per tier, respectively. seeds.dm [219] clamps these for us but we don't want to mislead the viewer.