aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-04-24 22:59:19 +0100
committerrubenwardy <rw@rubenwardy.com>2022-04-24 23:09:23 +0100
commit480d5f2d51ca8f7c4400b0918bb53b776e4ff440 (patch)
tree6c20bd43af4915ec55f92a7c4cb902336cd047cb
parenta6170963b8ce5fee97326d639f6660f5097f78c9 (diff)
downloadminetest-480d5f2d51ca8f7c4400b0918bb53b776e4ff440.tar.gz
minetest-480d5f2d51ca8f7c4400b0918bb53b776e4ff440.tar.bz2
minetest-480d5f2d51ca8f7c4400b0918bb53b776e4ff440.zip
Fix texture packs not showing as enabled in mainmenu
Fixes #12219
-rw-r--r--builtin/mainmenu/pkgmgr.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua
index 8907aecfc..db62fcd50 100644
--- a/builtin/mainmenu/pkgmgr.lua
+++ b/builtin/mainmenu/pkgmgr.lua
@@ -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.