mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 20:13:45 +01:00
Fixes a runtime with the genemodder (#21428)
* fixes a runtime * fuuck im dumb
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user