]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix texture packs showing as "Nil (enabled)" in Content tab
authorrubenwardy <rw@rubenwardy.com>
Sat, 7 May 2022 22:05:24 +0000 (23:05 +0100)
committerrubenwardy <rw@rubenwardy.com>
Sat, 7 May 2022 22:05:39 +0000 (23:05 +0100)
Fixes #12285

builtin/mainmenu/pkgmgr.lua

index db62fcd50962f197869a548bf723ae743a53c1ad..3c576266132bf69b3863757c85182c35c3e5fff4 100644 (file)
@@ -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,