forked from Mirrorlandia_minetest/minetest
Fix broken dependency enabling due to missing enabled
field
This commit is contained in:
parent
9b03bd3243
commit
2785dcbbbf
@ -484,7 +484,7 @@ function pkgmgr.enable_mod(this, toset)
|
|||||||
core.log("warning", "Mod dependency \"" .. name ..
|
core.log("warning", "Mod dependency \"" .. name ..
|
||||||
"\" not found!")
|
"\" not found!")
|
||||||
else
|
else
|
||||||
if mod_to_enable.enabled == false then
|
if not mod_to_enable.enabled then
|
||||||
mod_to_enable.enabled = true
|
mod_to_enable.enabled = true
|
||||||
toggled_mods[#toggled_mods+1] = mod_to_enable.name
|
toggled_mods[#toggled_mods+1] = mod_to_enable.name
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user