Fixes lathes breaking on ore silo deletion (#91498)

## About The Pull Request
- Fixes #91494
- Fixes #91479
- Fixes #90533

The ORM disconnects the machines from its `Destroy()` proc by which time
its deleted flag has already been set to TRUE leading to an early
return, thus causing the silo to not disconnect properly

## Changelog
🆑
fix: lathes don't break on ore silo deletion
/🆑
This commit is contained in:
SyncIt21
2025-06-08 20:13:04 +05:30
committed by Roxy
parent 314210b24c
commit c780349b12
2 changed files with 6 additions and 11 deletions
+2 -2
View File
@@ -38,7 +38,7 @@
GLOB.ore_silo_default = null
for(var/datum/component/remote_materials/mats as anything in ore_connected_machines)
mats.disconnect_from(src)
mats.disconnect()
ore_connected_machines = null
materials = null
@@ -162,7 +162,7 @@
if(isnull(remote))
return
remote.disconnect_from(src)
remote.disconnect()
return TRUE
if("hold")