mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Write mods that are not in world.mt into it at world startup
This commit is contained in:
parent
dcd0b63f64
commit
b2253e5b42
@ -247,8 +247,11 @@ ModConfiguration::ModConfiguration(std::string worldpath)
|
||||
ModSpec& mod = *it;
|
||||
if(include_mod_names.count(mod.name) != 0)
|
||||
addon_mods.push_back(mod);
|
||||
else
|
||||
worldmt_settings.setBool("load_mod_" + mod.name, false);
|
||||
}
|
||||
}
|
||||
worldmt_settings.updateConfigFile(worldmt.c_str());
|
||||
|
||||
addMods(addon_mods);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user