From 94ab1723ba95546696add5519dc8fae00870e28e Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Tue, 29 Apr 2025 02:03:33 -0700 Subject: [PATCH] [MIRROR] Makes sure log_to_dd doesn't fire if the config has not actually loaded yet (#10806) Co-authored-by: Cameron Lennox --- code/_helpers/logging.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_helpers/logging.dm b/code/_helpers/logging.dm index 5a98ad4f20..b37c9b9ec4 100644 --- a/code/_helpers/logging.dm +++ b/code/_helpers/logging.dm @@ -264,7 +264,7 @@ /proc/log_to_dd(text) to_world_log(text) //this comes before the config check because it can't possibly runtime - if(CONFIG_GET(flag/log_world_output)) + if(config?.loaded && CONFIG_GET(flag/log_world_output)) WRITE_LOG(GLOB.diary, "DD_OUTPUT: [text]") /proc/log_error(text)