From 70283bbb6444418c25edd7dfedb6c7fe1bff2007 Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Thu, 29 Jun 2023 23:05:01 -0400 Subject: [PATCH] Fixes a runtime with the genemodder (#21428) * fixes a runtime * fuuck im dumb --- code/modules/hydroponics/gene_modder.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/hydroponics/gene_modder.dm b/code/modules/hydroponics/gene_modder.dm index 8d155da7efd..df40245ef78 100644 --- a/code/modules/hydroponics/gene_modder.dm +++ b/code/modules/hydroponics/gene_modder.dm @@ -203,9 +203,12 @@ disk_name = disk.gene.get_name() if(disk.read_only) disk_name = "[disk_name] (Read Only)" + var/can_insert = FALSE + if(seed) + can_insert = disk.gene?.can_add(seed) data["disk"] = list( "name" = disk_name, - "can_insert" = disk.gene?.can_add(seed), + "can_insert" = can_insert, "can_extract" = !disk.read_only, "is_core" = istype(disk?.gene, /datum/plant_gene/core) )