diff options
author | HybridDog <ovvv@web.de> | 2019-03-07 08:23:03 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2019-03-07 08:23:03 +0100 |
commit | 3066d76e33070f0ec598b522b519fd6c1ddaf10e (patch) | |
tree | cc3c982f49fa2c2f612a7cdc70dd48ae52636a54 /builtin/mainmenu/pkgmgr.lua | |
parent | bb35d062255ed74f6e1ebe0f7c4714054803b248 (diff) | |
download | minetest-3066d76e33070f0ec598b522b519fd6c1ddaf10e.tar.gz minetest-3066d76e33070f0ec598b522b519fd6c1ddaf10e.tar.bz2 minetest-3066d76e33070f0ec598b522b519fd6c1ddaf10e.zip |
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
Diffstat (limited to 'builtin/mainmenu/pkgmgr.lua')
-rw-r--r-- | builtin/mainmenu/pkgmgr.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua index 60a496093..dee4dabbb 100644 --- a/builtin/mainmenu/pkgmgr.lua +++ b/builtin/mainmenu/pkgmgr.lua @@ -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 ----------- |