mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 19:14:15 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user