From e0e897832c5acf29eef03cc4303c85a0a17f9983 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 7 May 2022 23:05:24 +0100 Subject: [PATCH] Fix texture packs showing as "Nil (enabled)" in Content tab Fixes #12285 --- builtin/mainmenu/pkgmgr.lua | 4 ++-- 1 file 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, -- 2.44.0