From 9ab3dd5018dfcb6c41a1bbdd1cdc71ff3a7c6ffe Mon Sep 17 00:00:00 2001 From: skoglol <33292112+kriskog@users.noreply.github.com> Date: Sat, 11 Jul 2020 19:21:50 +0200 Subject: [PATCH] Fixes glowshroom runtimes. (#52120) --- code/game/objects/effects/glowshroom.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/game/objects/effects/glowshroom.dm b/code/game/objects/effects/glowshroom.dm index 2d28d3a041b..bdf7285f9aa 100644 --- a/code/game/objects/effects/glowshroom.dm +++ b/code/game/objects/effects/glowshroom.dm @@ -45,11 +45,6 @@ . = ..() . += "This is a [generation]\th generation [name]!" -/obj/structure/glowshroom/Destroy() - if(myseed) - QDEL_NULL(myseed) - return ..() - /** * Creates a new glowshroom structure. * @@ -142,6 +137,8 @@ continue Decay(TRUE, 2) // Decay before spawning new mushrooms to reduce their endurance + if(QDELETED(src)) //Decay can end us + return var/obj/structure/glowshroom/child = new type(newLoc, myseed, TRUE, TRUE) child.generation = generation + 1 shrooms_planted++