[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>
This commit is contained in:
SkyratBot
2023-12-27 09:46:53 -05:00
committed by GitHub
co-authored by Arturlang
parent cf00bcb7b7
commit bb7b80d30a
+2
View File
@@ -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()