mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 08:27:13 +01:00
Refactored deletion observables to use the COMSIG_QDELETING signal (#20121)
Refactored deletion observables to use the COMSIG_QDELETING signal instead, removed the observable.
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
index_name = "Index ([length(indices) + 1])"
|
||||
E.name = index_name
|
||||
LAZYSET(indices, E.name, E)
|
||||
GLOB.destroyed_event.register(E, src, PROC_REF(remove_index))
|
||||
RegisterSignal(E, COMSIG_QDELETING, PROC_REF(remove_index))
|
||||
return E
|
||||
|
||||
/obj/item/journal/proc/remove_index(var/obj/item/folder/embedded/E)
|
||||
|
||||
Reference in New Issue
Block a user