mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
fixes runtime when building things with proxy sensors that get deleted in the process (#70786)
proximity_monitor.set_host() was being called after being deleted (qdel -> movetonullspace -> dropped())
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
|
||||
/obj/item/assembly/prox_sensor/Destroy()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
. = ..()
|
||||
QDEL_NULL(proximity_monitor)
|
||||
return ..()
|
||||
|
||||
/obj/item/assembly/prox_sensor/examine(mob/user)
|
||||
. = ..()
|
||||
@@ -44,7 +45,7 @@
|
||||
// assembly holder's attached object
|
||||
// assembly holder itself
|
||||
// us
|
||||
proximity_monitor.set_host(connected?.holder || holder?.master || holder || src, src)
|
||||
proximity_monitor?.set_host(connected?.holder || holder?.master || holder || src, src)
|
||||
|
||||
/obj/item/assembly/prox_sensor/on_attach()
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user