mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Don't save load_mod_* = false
lines in world.mt
(#15758)
This commit is contained in:
parent
54bf5d62f2
commit
b7f01b0cc7
2 changed files with 2 additions and 4 deletions
|
@ -140,8 +140,6 @@ void ModConfiguration::addModsFromConfig(
|
|||
*
|
||||
* Alternative candidates for a modname are stored in `candidates`,
|
||||
* and used in an error message later.
|
||||
*
|
||||
* If not enabled, add `load_mod_modname = false` to world.mt
|
||||
*/
|
||||
for (const auto &modPath : modPaths) {
|
||||
std::vector<ModSpec> addon_mods_in_path = flattenMods(getModsInPath(modPath.second, modPath.first));
|
||||
|
@ -154,7 +152,7 @@ void ModConfiguration::addModsFromConfig(
|
|||
candidates[pair->first].emplace_back(mod.virtual_path);
|
||||
}
|
||||
} else {
|
||||
conf.setBool("load_mod_" + mod.name, false);
|
||||
conf.remove("load_mod_" + mod.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue