From: PilzAdam Date: Sun, 19 May 2013 17:52:29 +0000 (+0200) Subject: Write mods that are not in world.mt into it at world startup X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=b2253e5b42aed74365cb6d10b90fea4a30dee5fa;p=zefram%2Fminetest%2Fminetest_engine.git Write mods that are not in world.mt into it at world startup --- diff --git a/src/mods.cpp b/src/mods.cpp index a0a37afb..9097f570 100644 --- a/src/mods.cpp +++ b/src/mods.cpp @@ -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);