summaryrefslogtreecommitdiff
path: root/builtin/mainmenu/pkgmgr.lua
diff options
context:
space:
mode:
authorHybridDog <ovvv@web.de>2019-03-07 08:23:03 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2019-03-07 08:23:03 +0100
commit3066d76e33070f0ec598b522b519fd6c1ddaf10e (patch)
treecc3c982f49fa2c2f612a7cdc70dd48ae52636a54 /builtin/mainmenu/pkgmgr.lua
parentbb35d062255ed74f6e1ebe0f7c4714054803b248 (diff)
downloadminetest-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.lua4
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 -----------