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
This commit is contained in:
Arturlang
2023-12-27 14:34:13 +01:00
committed by GitHub
parent e375b3a2f6
commit f77fa385c4
+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()