projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcd0b63
)
Write mods that are not in world.mt into it at world startup
author
PilzAdam
<pilzadam@minetest.net>
Sun, 19 May 2013 17:52:29 +0000
(19:52 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Sun, 19 May 2013 17:52:29 +0000
(19:52 +0200)
src/mods.cpp
patch
|
blob
|
history
diff --git
a/src/mods.cpp
b/src/mods.cpp
index a0a37afb9b049cac1fb787c10af5dad889f344dd..9097f5708129804acdebfb9d61a0a90d74d33f64 100644
(file)
--- 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);