Cleans up some destroy procs related to remote_materials (#47601)

This commit is contained in:
Emmett Gaines
2019-11-08 22:15:50 +01:00
committed by AnturK
parent 9464e3dc42
commit 041322f222
5 changed files with 18 additions and 5 deletions
+5
View File
@@ -87,6 +87,11 @@
proximity_monitor = new(src, 1)
materials = AddComponent(/datum/component/remote_materials, "stacking", mapload, FALSE, mapload && force_connect)
/obj/machinery/mineral/stacking_machine/Destroy()
CONSOLE = null
materials = null
return ..()
/obj/machinery/mineral/stacking_machine/HasProximity(atom/movable/AM)
if(istype(AM, /obj/item/stack/sheet) && AM.loc == get_step(src, input_dir))
process_sheet(AM)