fix app.config_packs adding default packs twice in a client app script

Since b2bbef69 the first content-related app function ticks first, and in a
client app that tick loads the default content. app.config_packs read the
installed packs before that tick, so it asked reconfig_packs to add base
again: "pack duplication [base]". Do the pending tick before reading them.
This commit is contained in:
ostermine 2026-10-30 00:37:40 +03:00
parent 9d0e793408
commit 3b0efb674a

View file

@ -76,6 +76,9 @@ local function complete_app_lib(app)
end
function app.config_packs(packs_list)
if tick_required and not internals.is_post_runnable_context() then
__app_tick()
end
-- Check if packs are valid and add dependencies to the configuration
packs_list = pack.assemble(packs_list)