Fixes a runtime with the genemodder (#21428)

* fixes a runtime

* fuuck im dumb
This commit is contained in:
Contrabang
2023-06-29 23:05:01 -04:00
committed by GitHub
parent cf75945df7
commit 70283bbb64
+4 -1
View File
@@ -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)
)