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