]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix mods not being recursively enabled
authorrubenwardy <rw@rubenwardy.com>
Sun, 8 May 2022 13:01:32 +0000 (14:01 +0100)
committerrubenwardy <rw@rubenwardy.com>
Sun, 8 May 2022 13:01:32 +0000 (14:01 +0100)
Fixes #12290

builtin/mainmenu/pkgmgr.lua

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