mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: generator-providing pack may be removed
This commit is contained in:
parent
d4f0c906d2
commit
6f2f365278
1 changed files with 8 additions and 0 deletions
|
|
@ -91,6 +91,14 @@ function refresh()
|
|||
packs_cur:clear()
|
||||
packs_add:clear()
|
||||
|
||||
-- lock pack that contains used generator
|
||||
if world.is_open() then
|
||||
local genpack, genname = parse_path(world.get_generator())
|
||||
if genpack ~= "core" then
|
||||
table.insert(base_packs, genpack)
|
||||
end
|
||||
end
|
||||
|
||||
for i,id in ipairs(packs_installed) do
|
||||
local packinfo = pack.get_info(id)
|
||||
packinfo.index = i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue