]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix texture packs not showing as enabled in mainmenu
authorrubenwardy <rw@rubenwardy.com>
Sun, 24 Apr 2022 21:59:19 +0000 (22:59 +0100)
committerrubenwardy <rw@rubenwardy.com>
Sun, 24 Apr 2022 22:09:23 +0000 (23:09 +0100)
Fixes #12219

builtin/mainmenu/pkgmgr.lua

index 8907aecfc18aabd1490fa5e0199776c84d01100e..db62fcd50962f197869a548bf723ae743a53c1ad 100644 (file)
@@ -80,7 +80,7 @@ local function load_texture_packs(txtpath, retval)
                if item ~= "base" then
                        local path = txtpath .. DIR_DELIM .. item .. DIR_DELIM
                        local conf = Settings(path .. "texture_pack.conf")
-                       local enabled = conf == current_texture_path
+                       local enabled = path == current_texture_path
 
                        local title = conf:get("title")
                        -- list_* is only used if non-nil, else the regular versions are used.