fix: double execution on start

This commit is contained in:
Linventif 2025-07-06 13:16:05 +00:00
parent a269b85698
commit ee3f141c74

View File

@ -5,7 +5,7 @@ local function dllInstalled()
end end
local isLatest = debug.getinfo(1, "S").source == "@addons/_gmod_integration_latest/lua/autorun/_gmod_integration_latest.lua" local isLatest = debug.getinfo(1, "S").source == "@addons/_gmod_integration_latest/lua/autorun/_gmod_integration_latest.lua"
local isLatestExist = file.Exists("addons/_gmod_integration_latest/lua/autorun/_gmod_integration_latest.lua", "LUA") local isLatestExist = file.Exists("_gmod_integration_latest", "LUA")
if !alreadyLoadGMI then if !alreadyLoadGMI then
if dllInstalled() then if dllInstalled() then
if !file.Exists("gm_integration", "DATA") || !file.Exists("gm_integration/tmp.json", "DATA") then file.CreateDir("gm_integration") end if !file.Exists("gm_integration", "DATA") || !file.Exists("gm_integration/tmp.json", "DATA") then file.CreateDir("gm_integration") end