From 23ed1507ceb5695e9482c6ccda6c4bfe54003534 Mon Sep 17 00:00:00 2001 From: Linventif Date: Thu, 3 Jul 2025 16:12:34 +0000 Subject: [PATCH] fix: update simpleLog function to correctly handle logTimestamp configuration --- lua/autorun/gmod_integration.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/autorun/gmod_integration.lua b/lua/autorun/gmod_integration.lua index 6c2213e..27083ce 100644 --- a/lua/autorun/gmod_integration.lua +++ b/lua/autorun/gmod_integration.lua @@ -2,7 +2,7 @@ if game.SinglePlayer() then return print("Gmod Integration is not supported in S local alreadyLoadGMI = gmInte local isLatest = debug.getinfo(1, "S").source == "@addons/_gmod_integration_latest/lua/autorun/_gmod_integration_latest.lua" local function simpleLog(msg, debug) - print(" | " .. os.date(gmInte.config.logTimestamp || "%Y-%m-%d %H:%M:%S") .. " | Gmod Integration | " .. msg) + print(" | " .. os.date((gmInte && gmInte.config.logTimestamp) || "%Y-%m-%d %H:%M:%S") .. " | Gmod Integration | " .. msg) end if !alreadyLoadGMI then