Fix ForcedAutorun being called two times in some cases
This commit is contained in:
@@ -125,11 +125,13 @@ ProcessPackages(
|
|||||||
ProcessPackages(
|
ProcessPackages(
|
||||||
ContentPackageManager.LocalPackages,
|
ContentPackageManager.LocalPackages,
|
||||||
function(pkg, pkgPath)
|
function(pkg, pkgPath)
|
||||||
table.insert(package.path, pkgPath .. LUA_MOD_REQUIRE_PATH)
|
if not executedLocalPackages[pkg.Name] then
|
||||||
local forcedAutorunPath = pkgPath .. LUA_MOD_FORCEDAUTORUN_PATH
|
table.insert(package.path, pkgPath .. LUA_MOD_REQUIRE_PATH)
|
||||||
if File.DirectoryExists(forcedAutorunPath) then
|
local forcedAutorunPath = pkgPath .. LUA_MOD_FORCEDAUTORUN_PATH
|
||||||
QueueForcedAutorun(forcedAutorunPath, pkgPath, pkg)
|
if File.DirectoryExists(forcedAutorunPath) then
|
||||||
executedLocalPackages[pkg.Name] = true
|
QueueForcedAutorun(forcedAutorunPath, pkgPath, pkg)
|
||||||
|
executedLocalPackages[pkg.Name] = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user