mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
World config: Make depends easier to read (#7396)
* Do not always show every depends textfieds When there are no dependencies, it does not longer show an empty list. * Adjust the list height to avoid a scrollbar when possible * change minimum height and no dependencies message * Do not get depends for modpacks
This commit is contained in:
@@ -332,11 +332,11 @@ end
|
||||
--------------------------------------------------------------------------------
|
||||
function pkgmgr.get_dependencies(path)
|
||||
if path == nil then
|
||||
return "", ""
|
||||
return {}, {}
|
||||
end
|
||||
|
||||
local info = core.get_content_info(path)
|
||||
return table.concat(info.depends or {}, ","), table.concat(info.optional_depends or {}, ",")
|
||||
return info.depends or {}, info.optional_depends or {}
|
||||
end
|
||||
|
||||
----------- tests whether all of the mods in the modpack are enabled -----------
|
||||
|
Reference in New Issue
Block a user