diff options
author | rubenwardy <rw@rubenwardy.com> | 2022-05-08 14:01:32 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-14 18:33:42 +0200 |
commit | 6e9d31d4fbce1d0e6d02ef5aa5740d6128e93ade (patch) | |
tree | 671ff3611db898ea8cb91c131922b0693bd26d05 | |
parent | e81c48526b042666f08bb25d8b3f14007763c3f4 (diff) | |
download | minetest-6e9d31d4fbce1d0e6d02ef5aa5740d6128e93ade.tar.gz minetest-6e9d31d4fbce1d0e6d02ef5aa5740d6128e93ade.tar.bz2 minetest-6e9d31d4fbce1d0e6d02ef5aa5740d6128e93ade.zip |
Fix mods not being recursively enabled
Fixes #12290
-rw-r--r-- | builtin/mainmenu/pkgmgr.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua index 6de671529..44f39ca60 100644 --- a/builtin/mainmenu/pkgmgr.lua +++ b/builtin/mainmenu/pkgmgr.lua @@ -487,7 +487,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 |