Update code/modules/hydroponics/seeds.dm
Co-Authored-By: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user