From 3b0efb674a46ae7593dd5048409515ee76d912a2 Mon Sep 17 00:00:00 2001 From: ostermine Date: Fri, 30 Oct 2026 00:37:40 +0300 Subject: [PATCH] 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. --- res/scripts/stdlib.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/scripts/stdlib.lua b/res/scripts/stdlib.lua index b3bec82ce..868a8b635 100644 --- a/res/scripts/stdlib.lua +++ b/res/scripts/stdlib.lua @@ -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)