fix: update simpleLog function to correctly handle logTimestamp configuration

This commit is contained in:
Linventif 2025-07-03 16:12:34 +00:00
parent 99d70b8146
commit 23ed1507ce

View File

@ -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