From d3ba72d59bca57975d7ce7e1b141132f7cbd66e0 Mon Sep 17 00:00:00 2001 From: Bloop <13398309+vinylspiders@users.noreply.github.com> Date: Sat, 6 Jan 2024 07:38:04 -0500 Subject: [PATCH] [MISSED MIRROR] fix tgs version feedbackdb logging (#80774) (#333) fix tgs version feedbackdb logging (#80774) I found this while looking in this file for other reasons. Shutdown is called after blackbox.Seal() in 99% of cases, keeping this from getting logged. Co-authored-by: Kyle Spier-Swenson --- code/controllers/subsystem/server_maint.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/controllers/subsystem/server_maint.dm b/code/controllers/subsystem/server_maint.dm index 15fecf2a029..69a5edcca3a 100644 --- a/code/controllers/subsystem/server_maint.dm +++ b/code/controllers/subsystem/server_maint.dm @@ -31,6 +31,11 @@ SUBSYSTEM_DEF(server_maint) "dead_mob_list" = GLOB.dead_mob_list, "keyloop_list" = GLOB.keyloop_list, //A null here will cause new clients to be unable to move. totally unacceptable ) + + var/datum/tgs_version/tgsversion = world.TgsVersion() + if(tgsversion) + SSblackbox.record_feedback("text", "server_tools", 1, tgsversion.raw_parameter) + return SS_INIT_SUCCESS /datum/controller/subsystem/server_maint/fire(resumed = FALSE) @@ -86,9 +91,6 @@ SUBSYSTEM_DEF(server_maint) C?.tgui_panel?.send_roundrestart() if(server) //if you set a server location in config.txt, it sends you there instead of trying to reconnect to the same world address. -- NeoFite C << link("byond://[server]") - var/datum/tgs_version/tgsversion = world.TgsVersion() - if(tgsversion) - SSblackbox.record_feedback("text", "server_tools", 1, tgsversion.raw_parameter) /datum/controller/subsystem/server_maint/proc/UpdateHubStatus()