diff options
author | rubenwardy <rw@rubenwardy.com> | 2022-05-07 23:05:24 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2022-05-07 23:05:39 +0100 |
commit | e0e897832c5acf29eef03cc4303c85a0a17f9983 (patch) | |
tree | f0728b3609544369db4488ef7862f537f8267b4f /builtin/mainmenu | |
parent | 87472150bcb83e9cbad2f567ac536de0456ceb70 (diff) | |
download | minetest-e0e897832c5acf29eef03cc4303c85a0a17f9983.tar.gz minetest-e0e897832c5acf29eef03cc4303c85a0a17f9983.tar.bz2 minetest-e0e897832c5acf29eef03cc4303c85a0a17f9983.zip |
Fix texture packs showing as "Nil (enabled)" in Content tab
Fixes #12285
Diffstat (limited to 'builtin/mainmenu')
-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 db62fcd50..3c5762661 100644 --- a/builtin/mainmenu/pkgmgr.lua +++ b/builtin/mainmenu/pkgmgr.lua @@ -82,9 +82,9 @@ local function load_texture_packs(txtpath, retval) local conf = Settings(path .. "texture_pack.conf") local enabled = path == current_texture_path - local title = conf:get("title") - -- list_* is only used if non-nil, else the regular versions are used. + local title = conf:get("title") or item + -- list_* is only used if non-nil, else the regular versions are used. retval[#retval + 1] = { name = item, title = title, |