Skip to content

Commit b2253e5

Browse files
committedMay 19, 2013
Write mods that are not in world.mt into it at world startup
1 parent dcd0b63 commit b2253e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/mods.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,11 @@ ModConfiguration::ModConfiguration(std::string worldpath)
247247
ModSpec& mod = *it;
248248
if(include_mod_names.count(mod.name) != 0)
249249
addon_mods.push_back(mod);
250+
else
251+
worldmt_settings.setBool("load_mod_" + mod.name, false);
250252
}
251253
}
254+
worldmt_settings.updateConfigFile(worldmt.c_str());
252255

253256
addMods(addon_mods);
254257

0 commit comments

Comments
 (0)
Please sign in to comment.