From bd65465910492e212b2f2e28eed8d7109bfa2441 Mon Sep 17 00:00:00 2001 From: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Date: Tue, 2 May 2023 01:31:18 +0530 Subject: [PATCH] Fix Drying rack spawning a matter bin and circuit board on deconstruction. (#75062) ## About The Pull Request Fixes #75033 ## Changelog :cl: fix: Drying rack spawning a matter bin and circuit board on deconstruction /:cl: --------- Co-authored-by: san7890 --- code/modules/food_and_drinks/machinery/smartfridge.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/modules/food_and_drinks/machinery/smartfridge.dm b/code/modules/food_and_drinks/machinery/smartfridge.dm index 0ef815902bf..fb999680f14 100644 --- a/code/modules/food_and_drinks/machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/machinery/smartfridge.dm @@ -277,7 +277,14 @@ /obj/machinery/smartfridge/drying_rack/on_deconstruction() new /obj/item/stack/sheet/mineral/wood(drop_location(), 10) - ..() + + //remove all component parts inherited from smartfridge cause they were not required in crafting + var/obj/item/circuitboard/machine/smartfridge/board = locate() in component_parts + component_parts -= board + qdel(board) + component_parts.Cut() + + return ..() /obj/machinery/smartfridge/drying_rack/default_deconstruction_screwdriver() /obj/machinery/smartfridge/drying_rack/exchange_parts()