Update code/modules/hydroponics/seeds.dm

Co-Authored-By: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
Seris02
2019-12-31 09:34:03 +08:00
committed by GitHub
parent 1030698c10
commit 5e403dd0a7
+1 -1
View File
@@ -453,7 +453,7 @@ obj/item/seeds/proc/is_gene_forbidden(typepath)
for(var/i in 1 to amount_random_traits)
var/random_trait = pick((subtypesof(/datum/plant_gene/trait)-typesof(/datum/plant_gene/trait/plant_type)))
var/datum/plant_gene/trait/T = new random_trait
if(T.can_add(src) && !is_gene_forbidden(T))
if(T.can_add(src) && !is_gene_forbidden(random_trait))
genes += T
else
qdel(T)