Makes setting a machine GC properly if not unset properly (#17840)

* Makes setting a machine GC properly if not unset properly

* Forgot one. Fuck you borer code
This commit is contained in:
Farie82
2022-05-21 13:35:08 +01:00
committed by GitHub
parent 2f25bcb8c0
commit ab7a358506
3 changed files with 5 additions and 18 deletions
+2
View File
@@ -171,6 +171,7 @@
/mob/proc/unset_machine()
if(machine)
UnregisterSignal(machine, COMSIG_PARENT_QDELETING)
machine.on_unset_machine(src)
machine = null
@@ -184,6 +185,7 @@
src.machine = O
if(istype(O))
O.in_use = TRUE
RegisterSignal(O, COMSIG_PARENT_QDELETING, .proc/unset_machine)
/obj/item/proc/updateSelfDialog()
var/mob/M = src.loc