From 0062dcdccb6d3d8cd7415bb31e912d5a201dc12b Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Fri, 22 May 2026 17:12:38 -0700 Subject: [PATCH] [MIRROR] Fixes disposal bins not unlinking properly when being deconstructed and causing a hard del (#12778) Co-authored-by: Reo Lozzot <84661000+ReoDaProtovali@users.noreply.github.com> Co-authored-by: Cameron Lennox --- code/modules/recycling/disposal_machines.dm | 2 ++ code/modules/recycling/disposal_outlet.dm | 1 + 2 files changed, 3 insertions(+) diff --git a/code/modules/recycling/disposal_machines.dm b/code/modules/recycling/disposal_machines.dm index ef58059ec1..aa682774af 100644 --- a/code/modules/recycling/disposal_machines.dm +++ b/code/modules/recycling/disposal_machines.dm @@ -58,6 +58,7 @@ update_icon() /obj/machinery/disposal/Destroy() + SEND_SIGNAL(src, COMSIG_DISPOSAL_UNLINK) //Just to be safe. eject() return ..() @@ -613,6 +614,7 @@ for(var/atom/movable/AM in src) AM.forceMove(T) //..() //*cough + SEND_SIGNAL(src, COMSIG_DISPOSAL_UNLINK) //unlinks in destroy, too. Multi-sending shouldnt be too bad. qdel(src) //Parent above should do this, but that's not a thing as of writing this. diff --git a/code/modules/recycling/disposal_outlet.dm b/code/modules/recycling/disposal_outlet.dm index c7d768b6f9..c662038927 100644 --- a/code/modules/recycling/disposal_outlet.dm +++ b/code/modules/recycling/disposal_outlet.dm @@ -27,6 +27,7 @@ SEND_SIGNAL(src, COMSIG_DISPOSAL_LINK, trunk) /obj/structure/disposaloutlet/Destroy() + SEND_SIGNAL(src, COMSIG_DISPOSAL_UNLINK) //Just to be safe. target = null . = ..()