mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 03:23:45 +01:00
parent
e0e897832c
commit
9824a451bb
@ -507,7 +507,7 @@ function pkgmgr.enable_mod(this, toset)
|
|||||||
-- Push the dependencies of the dependency onto the stack
|
-- Push the dependencies of the dependency onto the stack
|
||||||
local depends = pkgmgr.get_dependencies(mod_to_enable.path)
|
local depends = pkgmgr.get_dependencies(mod_to_enable.path)
|
||||||
for i = 1, #depends do
|
for i = 1, #depends do
|
||||||
if not enabled_mods[name] then
|
if not enabled_mods[depends[i]] then
|
||||||
sp = sp+1
|
sp = sp+1
|
||||||
to_enable[sp] = depends[i]
|
to_enable[sp] = depends[i]
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user