mirror of
https://github.com/minetest/minetest.git
synced 2024-12-12 09:23:15 +01:00
Enable dependencies when enabling modpacks (#12202)
This commit is contained in:
parent
54bc8a7627
commit
f10a260301
@ -454,9 +454,8 @@ function pkgmgr.enable_mod(this, toset)
|
|||||||
local toggled_mods = {}
|
local toggled_mods = {}
|
||||||
local enabled_mods = {}
|
local enabled_mods = {}
|
||||||
toggle_mod_or_modpack(list, toggled_mods, enabled_mods, toset, mod)
|
toggle_mod_or_modpack(list, toggled_mods, enabled_mods, toset, mod)
|
||||||
toset = mod.enabled -- Update if toggled
|
|
||||||
|
|
||||||
if not toset then
|
if next(enabled_mods) == nil then
|
||||||
-- Mod(s) were disabled, so no dependencies need to be enabled
|
-- Mod(s) were disabled, so no dependencies need to be enabled
|
||||||
table.sort(toggled_mods)
|
table.sort(toggled_mods)
|
||||||
core.log("info", "Following mods were disabled: " ..
|
core.log("info", "Following mods were disabled: " ..
|
||||||
|
Loading…
Reference in New Issue
Block a user