mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
[MIRROR] Pulls apart the vestiges of components still hanging onto signals [MDB IGNORE] (#21738)
* Pulls apart the vestiges of components still hanging onto signals * update modular --------- Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
co-authored by
LemonInTheDark
Tom
parent
da5da42a18
commit
6dfe17306c
@@ -50,7 +50,7 @@
|
||||
if(current_variable)
|
||||
if(should_listen)
|
||||
current_variable.remove_listener(src)
|
||||
UnregisterSignal(current_variable, COMSIG_PARENT_QDELETING)
|
||||
UnregisterSignal(current_variable, COMSIG_QDELETING)
|
||||
current_variable = null
|
||||
|
||||
/obj/item/circuit_component/variable/proc/set_current_variable(datum/circuit_variable/variable)
|
||||
@@ -61,4 +61,4 @@
|
||||
current_variable = variable
|
||||
if(should_listen)
|
||||
current_variable.add_listener(src)
|
||||
RegisterSignal(current_variable, COMSIG_PARENT_QDELETING, PROC_REF(remove_current_variable))
|
||||
RegisterSignal(current_variable, COMSIG_QDELETING, PROC_REF(remove_current_variable))
|
||||
|
||||
Reference in New Issue
Block a user