From 619887cdbd10cd26d8298615d039b8ac0528a797 Mon Sep 17 00:00:00 2001 From: Y0SH1M4S73R Date: Fri, 2 Aug 2024 20:00:13 -0400 Subject: [PATCH] [NO GBP] Actually makes the runtime logging suppression for lua states suppress logging runtimes (#85502) ## About The Pull Request I was so focused on the ui code that I forgot that I didn't make the `supress_runtimes` var do anything. ## Why It's Good For The Game Things should do what they were made to do. ## Changelog :cl: admin: The "Suppress Runtime Logging" toggle in the lua editor actually does what it says /:cl: --- code/modules/admin/verbs/lua/lua_state.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/admin/verbs/lua/lua_state.dm b/code/modules/admin/verbs/lua/lua_state.dm index 37a60f1fdb5..577b0e365c2 100644 --- a/code/modules/admin/verbs/lua/lua_state.dm +++ b/code/modules/admin/verbs/lua/lua_state.dm @@ -55,6 +55,8 @@ GLOBAL_PROTECT(lua_state_stack) var/status = result["status"] if(!verbose && status != "error" && status != "panic" && status != "runtime" && !(result["name"] == "input" && (status == "finished" || length(result["return_values"])))) return + if(status == "runtime" && supress_runtimes) + return var/append_to_log = TRUE var/index_of_log if(log.len)