1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-05 08:55:01 -05:00

Write mods that are not in world.mt into it at world startup

This commit is contained in:
PilzAdam 2013-05-19 19:52:29 +02:00
parent dcd0b63f64
commit b2253e5b42

View File

@ -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);