diff --git a/code/modules/modular_computers/file_system/data.dm b/code/modules/modular_computers/file_system/data.dm index 7721d50b763..661318f4baf 100644 --- a/code/modules/modular_computers/file_system/data.dm +++ b/code/modules/modular_computers/file_system/data.dm @@ -98,6 +98,10 @@ src.workspace = workspace src.source_photo_or_painting = source_photo_or_painting +/datum/computer_file/data/paint_project/Destroy(force) + source_photo_or_painting = null + return ..() + /datum/computer_file/data/paint_project/clone(rename) var/datum/computer_file/data/paint_project/temp = ..() temp.workspace = workspace.copy() diff --git a/code/modules/modular_computers/file_system/image_file.dm b/code/modules/modular_computers/file_system/image_file.dm index f029793701d..8dcfd942f22 100644 --- a/code/modules/modular_computers/file_system/image_file.dm +++ b/code/modules/modular_computers/file_system/image_file.dm @@ -27,6 +27,10 @@ src.image_name = image_name set_source(source_photo_or_painting) +/datum/computer_file/image/Destroy(force) + source_photo_or_painting = null + return ..() + /datum/computer_file/image/on_install(datum/computer_file/source, obj/item/modular_computer/computer_installing) . = ..() assign_path()