Write mods that are not in world.mt into it at world startup
authorPilzAdam <pilzadam@minetest.net>
Sun, 19 May 2013 17:52:29 +0000 (19:52 +0200)
committerPilzAdam <pilzadam@minetest.net>
Sun, 19 May 2013 17:52:29 +0000 (19:52 +0200)
src/mods.cpp

index a0a37afb9b049cac1fb787c10af5dad889f344dd..9097f5708129804acdebfb9d61a0a90d74d33f64 100644 (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);