From b2253e5b42aed74365cb6d10b90fea4a30dee5fa Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sun, 19 May 2013 19:52:29 +0200 Subject: [PATCH] Write mods that are not in world.mt into it at world startup --- src/mods.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mods.cpp b/src/mods.cpp index a0a37afb9..9097f5708 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);