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:
fbbbcf9
)
Add world/mods to mod search path
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 3 Dec 2011 00:55:54 +0000
(
02:55
+0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 3 Dec 2011 00:55:54 +0000
(
02:55
+0200)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index 19138e52e9d511a4652564d9901c4f7b661d83f5..795b35b341ffdb8cbd857ed91c708cd7ba88ad76 100644
(file)
--- a/
src/server.cpp
+++ b/
src/server.cpp
@@
-965,8
+965,11
@@
Server::Server(
// Path to builtin.lua
std::string builtinpath = porting::path_data + DIR_DELIM + "builtin.lua";
- // Add default global mod path
+
+ // Add default global mod search path
m_modspaths.push_back(porting::path_data + DIR_DELIM + "mods");
+ // Add world mod search path
+ m_modspaths.push_back(mapsavedir + DIR_DELIM + "mods");
// Initialize scripting