mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Moves nanomanager.close_uis(src) into datum/proc/Destroy() instead of /obj/Destroy() now that NanoUI supports datums.
This commit is contained in:
@@ -187,6 +187,7 @@ world/loop_checks = 0
|
|||||||
// This should be overridden to remove all references pointing to the object being destroyed.
|
// This should be overridden to remove all references pointing to the object being destroyed.
|
||||||
// Return true if the the GC controller should allow the object to continue existing. (Useful if pooling objects.)
|
// Return true if the the GC controller should allow the object to continue existing. (Useful if pooling objects.)
|
||||||
/datum/proc/Destroy()
|
/datum/proc/Destroy()
|
||||||
|
nanomanager.close_uis(src)
|
||||||
tag = null
|
tag = null
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
/obj/Destroy()
|
/obj/Destroy()
|
||||||
processing_objects -= src
|
processing_objects -= src
|
||||||
nanomanager.close_uis(src)
|
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
/obj/Topic(href, href_list, var/datum/topic_state/state = default_state)
|
/obj/Topic(href, href_list, var/datum/topic_state/state = default_state)
|
||||||
|
|||||||
Reference in New Issue
Block a user