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
1 changed files with 3 additions and 0 deletions

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