From bb7b80d30a5f63271b75e84b34cd55b9531642ca Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 27 Dec 2023 15:46:53 +0100 Subject: [PATCH] [MIRROR] Makes the turbine core part remove references on deactivation [MDB IGNORE] (#25871) * Makes the turbine core part remove references on deactivation (#80593) ## About The Pull Request The delete the world test was showing that the turbine's non-core parts, the compressor and outlet were causing runtimes, so I made the deactivation of the core remove the references from the secondary turbine parts ## Why It's Good For The Game Less harddels means less lag, hopefully No changelog since nothing player facing * Makes the turbine core part remove references on deactivation --------- Co-authored-by: Arturlang <24881678+Arturlang@users.noreply.github.com> --- code/modules/power/turbine/turbine.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/power/turbine/turbine.dm b/code/modules/power/turbine/turbine.dm index 2ca8b1df7f2..06466318025 100644 --- a/code/modules/power/turbine/turbine.dm +++ b/code/modules/power/turbine/turbine.dm @@ -512,7 +512,9 @@ /obj/machinery/power/turbine/core_rotor/deactivate_parts() if(all_parts_connected) power_off() + compressor?.rotor = null compressor = null + turbine?.rotor = null turbine = null all_parts_connected = FALSE disconnect_from_network()