diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-05-19 19:52:29 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-05-19 19:52:29 +0200 |
commit | b2253e5b42aed74365cb6d10b90fea4a30dee5fa (patch) | |
tree | b02df46ad2a35316fb96f1630ef57101fdc51327 | |
parent | dcd0b63f645bccf497a030b6b1cec97178542eb1 (diff) | |
download | minetest-b2253e5b42aed74365cb6d10b90fea4a30dee5fa.tar.gz minetest-b2253e5b42aed74365cb6d10b90fea4a30dee5fa.tar.bz2 minetest-b2253e5b42aed74365cb6d10b90fea4a30dee5fa.zip |
Write mods that are not in world.mt into it at world startup
-rw-r--r-- | src/mods.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |