mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
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:
parent
9d0e793408
commit
3b0efb674a
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue