aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-05-08 14:01:32 +0100
committerrubenwardy <rw@rubenwardy.com>2022-05-08 14:01:32 +0100
commit9824a451bb8d6f632aa80abc186f440f8d5a745a (patch)
tree7f08050f7698b8742654df8d97dcc6e0e22a3843 /builtin/mainmenu
parente0e897832c5acf29eef03cc4303c85a0a17f9983 (diff)
downloadminetest-9824a451bb8d6f632aa80abc186f440f8d5a745a.tar.gz
minetest-9824a451bb8d6f632aa80abc186f440f8d5a745a.tar.bz2
minetest-9824a451bb8d6f632aa80abc186f440f8d5a745a.zip
Fix mods not being recursively enabled
Fixes #12290
Diffstat (limited to 'builtin/mainmenu')
-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 3c5762661..a95fef10b 100644
--- a/builtin/mainmenu/pkgmgr.lua
+++ b/builtin/mainmenu/pkgmgr.lua
@@ -507,7 +507,7 @@ function pkgmgr.enable_mod(this, toset)
-- Push the dependencies of the dependency onto the stack
local depends = pkgmgr.get_dependencies(mod_to_enable.path)
for i = 1, #depends do
- if not enabled_mods[name] then
+ if not enabled_mods[depends[i]] then
sp = sp+1
to_enable[sp] = depends[i]
end