diff --git a/code/modules/hydroponics/trays/tray.dm b/code/modules/hydroponics/trays/tray.dm index 884999075a..ca3ded0d22 100644 --- a/code/modules/hydroponics/trays/tray.dm +++ b/code/modules/hydroponics/trays/tray.dm @@ -390,9 +390,12 @@ // If a weed growth is sufficient, this proc is called. /obj/machinery/portable_atmospherics/hydroponics/proc/weed_invasion() + var/previous_plant //Remove the seed if something is already planted. - if(seed) seed = null + if(seed) + previous_plant = seed.display_name + seed = null seed = SSplants.seeds[pick(list("reishi","nettle","amanita","mushrooms","plumphelmet","towercap","harebells","weeds"))] if(!seed) return //Weed does not exist, someone fucked up. @@ -406,7 +409,7 @@ pestlevel = 0 sampled = 0 update_icon() - visible_message("[src] has been overtaken by [seed.display_name].") + visible_message("\The [previous_plant ? previous_plant : initial(name)] has been overtaken by [seed.display_name].") return