[MIRROR] NIF Commlink auto-install (#10661)

Co-authored-by: eghughguhhhhhh <Hawoogabooga@gmail.com>
Co-authored-by: vorestation-ci[bot] <199609141+vorestation-ci[bot]@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-17 06:35:31 -07:00
committed by GitHub
parent c0ec495ce3
commit de148092e0

View File

@@ -12,6 +12,8 @@
/datum/nifsoft/commlink/install()
if((. = ..()))
nif.comm = new(nif,src)
if(nif.human?.client?.prefs?.communicator_visibility)
nif.comm.initialize_exonet(nif.human) //no harm in running this twice.
/datum/nifsoft/commlink/uninstall()
var/obj/item/nif/lnif = nif //Awkward. Parent clears it in an attempt to clean up.