1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-27 15:00:30 +02:00

Fix mods not being recursively enabled

Fixes #12290
This commit is contained in:
rubenwardy 2022-05-08 14:01:32 +01:00 committed by sfan5
parent e81c48526b
commit 6e9d31d4fb

View File

@ -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